[Haskell-cafe] hopefully, a very quick question about ByteString lib

Iain Barnett iainspeed at gmail.com
Tue Oct 27 11:26:10 EDT 2009


[1 of 1] Compiling Main             ( sha1.lhs, interpreted )
import qualified Data.ByteString as B

main = B.getLine >>= B.putStrLn


Ok, modules loaded: Main.
*Main> :main
*** Exception: no buffering


And just to make sure it's not something to do with GHCi or anything  
like that


main = getLine >>= putStrLn

[1 of 1] Compiling Main             ( sha1.lhs, interpreted )
Ok, modules loaded: Main.
*Main> :main
hello
hello


Why am I getting an error when using the ByteString library?


Iain


More information about the Haskell-Cafe mailing list