Skip to content

Commit

Permalink
Fix build under 6.10
Browse files Browse the repository at this point in the history
--HG--
extra : convert_revision : 69e527fa935d1e8c07de86a51f5a1c9cb880137b
  • Loading branch information
bos committed Sep 8, 2010
1 parent 7f1b04b commit e8ed4fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Data/Text/IO.hs
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,6 @@ hGetContents h = do
ts <- readChunks
(hh', _) <- hClose_help hh
return (hh'{haType=ClosedHandle}, T.concat ts)
#endif

-- | Use a more efficient buffer size if we're reading in
-- block-buffered mode with the default buffer size. When we can
Expand All @@ -129,6 +128,7 @@ chooseGoodBuffering h = do
else throw e
when (d > 0) . hSetBuffering h . BlockBuffering . Just . fromIntegral $ d
_ -> return ()
#endif

-- | Read a single line from a handle.
hGetLine :: Handle -> IO Text
Expand Down

0 comments on commit e8ed4fa

Please sign in to comment.