[Haskell-cafe] Functional dependencies conflict
Roman Cheplyaka
roma at ro-che.info
Sun Apr 5 13:04:43 UTC 2015
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
More information about the Glasgow-haskell-users
mailing list