[Haskell-beginners] Reading a list of null-terminated filenames from stdin?
strombrg at gmail.com
Sat Oct 10 18:45:03 UTC 2015
If I want to read a list of filenames, each terminated with a nul byte,
from stdin (kind of like xargs -0), what's the best way to do that in
Haskell? Or am I swimming against the current to do anything but
Google's top hit is:
...but I don't see anything about nul termination there. I checked the top
~5 hits, and didn't find much.
I also checked https://www.haskell.org/hoogle/?hoogle=Lines
The goal is to be able to operate on filenames that contain newlines, but
it's not that end of the world if that isn't very practical.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Beginners