[project @ 1999-05-10 16:52:10 by sof]
[ghc-hetmet.git] / ghc / lib / std / PrelHandle.lhs
index 1c63aea..079e144 100644 (file)
@@ -85,7 +85,7 @@ newHandle hc  = newMVar       hc      >>= \ h ->
   -- exception occur while performing said op.
 withHandle (Handle h) act = do
    h_ <- takeMVar h
-   v  <- catchException (act h_) (\ ex -> putMVar h h_ >> throw ex)
+   v  <- catchNonIO (act h_) (\ ex -> putMVar h h_ >> throw ex)
    return v
    
 writeHandle (Handle h) hc = putMVar h hc