On 05/04/15 15:54, Daniel Trstenjak wrote: > > On Sun, Apr 05, 2015 at 03:25:01PM +0300, Roman Cheplyaka wrote: >> Data.ByteString.Lazy.Char8 exports the same lazy bytestring type as >> Data.ByteString.Lazy. Only functions and instances differ. > > So my only option in this case is to define a newtype wrapper > for Data.ByteString.Lazy and then define a Stream instance on this one?
You might do that. But if I were you, I'd use attoparsec or even binary/cereal to parse PNG. They are better suited for parsing binary data. Roman _______________________________________________ Glasgow-haskell-users mailing list Glasgow-haskell-users@haskell.org http://mail.haskell.org/cgi-bin/mailman/listinfo/glasgow-haskell-users