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

Thomas DuBuisson thomas.dubuisson at gmail.com
Tue Oct 27 11:47:12 EDT 2009


Iain,
If you wanted to make sure it didn't have to do with ghci then you
should have compiled the original code, not tested different
functions.  The code you provided works fine compiled and I too am
curious what is going on when you run it in ghci.

Thomas

On Tue, Oct 27, 2009 at 8:26 AM, Iain Barnett <iainspeed at gmail.com> wrote:
> [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
> _______________________________________________
> Haskell-Cafe mailing list
> Haskell-Cafe at haskell.org
> http://www.haskell.org/mailman/listinfo/haskell-cafe
>


More information about the Haskell-Cafe mailing list