
10 Oct
2015
10 Oct
'15
3:45 p.m.
On Oct 10, 2015, at 12:40 PM, Dan Stromberg
wrote: I'm very much a Haskell newb, but does Data.ByteString.hGet stdin read a fixed (maximum) number of bytes, rather than a nul terminated sequence of bytes?
Yes, you’d have to write some code to look for nuls yourself. Or, if the input is small enough that you don’t mind reading it all into memory at once, use hGetContents. -Karl