@@ -102,9 +102,9 @@ hGetContents h = do
102102 (hh',ts) <- readChunks
103103 return (hh', t:ts)
104104 readChunks `catch` \e -> do
105− (hh', _) <- hClose_help hh
106105 if isEOFError e
107106 then do
107+ (hh', _) <- hClose_help hh
108108 buf <- readIORef haCharBuffer
109109 return $ if isEmptyBuffer buf
110110 then (hh', [])