X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=GHC%2FIO%2FHandle%2FInternals.hs;h=6fb66c740de275a9f26f46e8be0613ee24b0cead;hb=e8a2ba6e81bab5ec6a03b3e46cdcc274d315ab9d;hp=ed32eaa2b32cc5fad0d7902eae653a275b73d5f0;hpb=ccc931d0905f6e0d55cb90b045881d4515112411;p=ghc-base.git diff --git a/GHC/IO/Handle/Internals.hs b/GHC/IO/Handle/Internals.hs index ed32eaa..6fb66c7 100644 --- a/GHC/IO/Handle/Internals.hs +++ b/GHC/IO/Handle/Internals.hs @@ -63,7 +63,6 @@ import qualified GHC.IO.BufferedIO as Buffered import GHC.Real import GHC.Base -import GHC.List import GHC.Exception import GHC.Num ( Num(..) ) import GHC.Show @@ -73,9 +72,8 @@ import Data.Typeable import Control.Monad import Data.Maybe import Foreign -import System.IO.Error +-- import System.IO.Error import System.Posix.Internals hiding (FD) -import qualified System.Posix.Internals as Posix #ifdef DEBUG_DUMP import Foreign.C @@ -336,7 +334,7 @@ handleFinalizer fp m = do _ -> do flushWriteBuffer handle_ `catchAny` \_ -> return () -- ignore errors and async exceptions, and close the -- descriptor anyway... - hClose_handle_ handle_ + _ <- hClose_handle_ handle_ return () putMVar m (ioe_finalizedHandle fp)