Fix warnings
authorMichael Snoyman <michael@snoyman.com>
Mon, 6 Feb 2017 08:44:29 +0000 (10:44 +0200)
committerMichael Snoyman <michael@snoyman.com>
Mon, 6 Feb 2017 08:44:29 +0000 (10:44 +0200)
.travis.yml
System/Process.hs

index c045791..04d0bfc 100644 (file)
@@ -158,7 +158,7 @@ install:
   set -ex
   case "$BUILD" in
     stack)
-      stack --no-terminal --install-ghc $ARGS test --bench --only-dependencies
+      stack --no-terminal --install-ghc $ARGS test --bench --only-dependencies --pedantic
       ;;
     cabal)
       cabal --version
index 81a5788..0112659 100644 (file)
@@ -608,12 +608,13 @@ waitForProcess ph@(ProcessHandle _ delegating_ctlc) = do
         when delegating_ctlc $
           endDelegateControlC e
         return e
-    OpenExtHandle _ job iocp ->
 #if defined(WINDOWS)
+    OpenExtHandle _ job iocp ->
         maybe (ExitFailure (-1)) mkExitCode `fmap` waitForJobCompletion job iocp timeout_Infinite
       where mkExitCode code | code == 0 = ExitSuccess
                             | otherwise = ExitFailure $ fromIntegral code
 #else
+    OpenExtHandle _ _job _iocp ->
         return $ ExitFailure (-1)
 #endif