Bytestring cannot be used
I've created some code in the past that uses Data.Bytestring.Lazy. Now when I try to compile it endless what I get is a bunch of errors. An example of an error:
Couldn't match expected type `BL.ByteString'
with actual type `bytestring-0.10.0.2:Data.ByteString.Lazy.Internal.ByteString'
In the return type of a call of `decompress'
In the second argument of `decrypt', namely `(decompress fc)'
In the second argument of `BL.filter', namely
`(decrypt (extractKey tkey) (decompress fc))'
... And many errors like this ...
My import bytestring: import Data.ByteString.Lazy as BL. What to do about it?
EDIT:
Thanks for the help. Everything works fine with an explicit version of the package. But I don't like it. When I try to unregister one of the two installed packages for testing. Many packages will be broken. The newest version of the package breaks a small number of packages (no kernel packages). How to recover packed packages that were destroyed by an unregistered package?
EDIT:
No, it doesn't work fine with an explicit package version. I wrote an edit before I tried it physically. It was a mistake. Nothing works.
source to share