ByteString, foldr and lazyness
Nicolas Pouillard
nicolas.pouillard at gmail.com
Fri Nov 28 09:24:38 EST 2008
Excerpts from Duncan Coutts's message of Fri Nov 28 15:14:46 +0100 2008:
> On Thu, 2008-11-27 at 15:08 +0100, Mathieu Boespflug wrote:
> > Hi all,
> >
> > Here's a ghci session, using bytestring-0.9.1.4 and ghc-6.10:
> >
> > Prelude> :m Data.ByteString.Lazy.Char8
> > Prelude Data.ByteString.Lazy.Char8> :m -Prelude
> > Data.ByteString.Lazy.Char8> foldr (:) [] (concat (Prelude.repeat "a"))
>
> This does not typecheck.
That's a matter of packing, maybe he has the overloaded strings extension.
--
Nicolas Pouillard aka Ertai
More information about the Libraries
mailing list