Fix ignored-monadic-result warnings
authorIan Lynagh <igloo@earth.li>
Tue, 7 Jul 2009 18:18:57 +0000 (18:18 +0000)
committerIan Lynagh <igloo@earth.li>
Tue, 7 Jul 2009 18:18:57 +0000 (18:18 +0000)
compiler/utils/Panic.lhs
utils/ghc-pkg/Main.hs

index 4f78aab..f4ca2ab 100644 (file)
@@ -203,7 +203,7 @@ installSignalHandlers = do
       sig_handler Break    = interrupt
       sig_handler _        = return ()
 
-  installHandler (Catch sig_handler)
+  _ <- installHandler (Catch sig_handler)
   return ()
 #endif
 
index 5f6f0b9..f79ebab 100644 (file)
@@ -1260,7 +1260,7 @@ installSignalHandlers = do
       sig_handler Break    = interrupt
       sig_handler _        = return ()
 
-  installHandler (Catch sig_handler)
+  _ <- installHandler (Catch sig_handler)
   return ()
 #else
   return () -- nothing