[Haskell-cafe] How does one create an input handle bound to a string instead of a file?
Ganesh Sittampalam
ganesh at earth.li
Thu Feb 28 09:02:28 CET 2013
Hi,
On 27/02/2013 20:38, John D. Ramsdell wrote:
> How does one create a value of type System.IO.Handle for reading that
> takes its input from a string instead of a file? I'm looking for the
> equivalent of java.io.StringReader in Java. Thanks in advance.
http://hackage.haskell.org/package/bytestring-handle can make handles
that read and write to ByteStrings.
Cheers,
Ganesh
More information about the Haskell-Cafe
mailing list