Skip to content

Commit

Permalink
revert bufC to buf
Browse files Browse the repository at this point in the history
  • Loading branch information
BebeSparkelSparkel authored May 7, 2024
1 parent be8c01c commit 47987f8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Data/Text/IO.hs
Original file line number Diff line number Diff line change
Expand Up @@ -188,10 +188,10 @@ hPutStr h t = do
case buffer_mode of
_ | nl == LF && isUTF8 -> B.hPutStr h $ encodeUtf8 t
(NoBuffering, _) -> hPutChars h str
(LineBuffering, bufC) -> writeLines h nl bufC str
(BlockBuffering _, bufC)
| nl == CRLF -> writeBlocksCRLF h bufC str
| otherwise -> writeBlocksRaw h bufC str
(LineBuffering, buf) -> writeLines h nl buf str
(BlockBuffering _, buf)
| nl == CRLF -> writeBlocksCRLF h buf str
| otherwise -> writeBlocksRaw h buf str

hPutChars :: Handle -> Stream Char -> IO ()
hPutChars h (Stream next0 s0 _len) = loop s0
Expand Down

0 comments on commit 47987f8

Please sign in to comment.