
17 Jan
2011
17 Jan
'11
4:51 a.m.
On 17 January 2011 14:39, Roderick Ford
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 Ivan.Miljenovic@gmail.com IvanMiljenovic.wordpress.com