On 17 January 2011 14:39, Roderick Ford <[email protected]> wrote:
> I wrote this little clip, and haven't been able to figure out why the
> L.ByteString is different type than Data.ByteString.Internal.ByteString, or
> if I am just doing everything wrong here.

Because the lazy and the strict variants might have the same name and
API, but are actually two different types.  Either use Data.ByteString
or Data.ByteString.Lazy, but don't mix them.  In the case of your code
example, it appears that Crypto.Hash.SHA1 is using strict ByteStrings.

-- 
Ivan Lazar Miljenovic
[email protected]
IvanMiljenovic.wordpress.com

_______________________________________________
Haskell-Cafe mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to