haskell / text

Haskell library for space- and time-efficient operations over Unicode text.

Home Page:http://hackage.haskell.org/package/text

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Off by one in writeBlocksRaw

BebeSparkelSparkel opened this issue · comments

writeBlocksRaw uses the same bounds check as writeBlocksCRLF. writeBlocksRaw will always only write one character while writeBlocksCRLF can write two.

Seems like it should actually be

          | n >= len -> commit n True{-needs flush-} False >>= outer s