Fix conditionals for process-1.6.3.0
[lsp-test.git] / src / Language / Haskell / LSP / Test / Compat.hs
index ddf4a7893e9c4a635a007b91981e6077bfa6c86b..a68f74158bb95baa85d5965556eecaf5689c1044 100644 (file)
@@ -9,9 +9,14 @@ import Data.Maybe
 import System.IO
 
 #if MIN_VERSION_process(1,6,3)
+# if MIN_VERSION_process(1,6,4)
 import System.Process hiding (getPid, cleanupProcess)
 import qualified System.Process (getPid, cleanupProcess)
 # else
+import System.Process hiding (getPid)
+import qualified System.Process (getPid)
+# endif
+#else
 import System.Process
 import System.Process.Internals
 import Control.Concurrent.MVar
@@ -59,7 +64,7 @@ cleanupRunningProcess p@(_, _, _, ph) =
   getProcessExitCode ph >>= maybe (cleanupProcess p) (const $ return ())
 
 cleanupProcess :: (Maybe Handle, Maybe Handle, Maybe Handle, ProcessHandle) -> IO ()
-#if MIN_VERSION_process(1,6,3)
+#if MIN_VERSION_process(1,6,4)
 cleanupProcess = System.Process.cleanupProcess
 #else
 cleanupProcess (mb_stdin, mb_stdout, mb_stderr, ph) = do