不能使用字节串

时间:2014-10-22 18:26:55

标签: haskell

我过去创建了一些使用Data.Bytestring.Lazy的代码。现在,当我尝试编译它时,我得到的就是一堆错误。错误示例:

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))'

......还有很多像这样的错误...

我对bytestring的导入:将Data.ByteString.Lazy导入为BL。 怎么办?

编辑:

感谢您的帮助。使用显式包版本,一切正常。但是,我不喜欢这个解决方案。当我尝试取消注册两个已安装的bytestring包中的一个时。很多包都会被打破。最新的软件包版本打破了少量的软件包(没有核心软件包)。如何修理未注册包裹破坏的包装?

编辑:

不,显式包版本无法正常工作。我在编辑之前编写了编辑。这是错误的。什么都行不通。

1 个答案:

答案 0 :(得分:1)

是的,我已经解决了这个问题。恶包是zlib,它使用旧版本的bytestring,但所有加密包都使用新版本。当我丢弃压缩代码时,我的程序编译完毕。现在,我正在寻找一些压缩算法......

相关问题