尝试学习如何使用 Data.Binary 并在此处遇到障碍:
http://www.haskell.org/haskellwiki/Serialisation_and_compression_with_Data_Binary
D:\Projects\haskell\serialize\ex1.hs:114:26:
Couldn't match expected type `bytestring-0.9.1.10:Data.ByteString.Lazy.Internal.ByteString'
with actual type `L.ByteString'
Expected type: Int
-> bytestring-0.9.1.10:Data.ByteString.Lazy.Internal.ByteString
Actual type: Int -> L.ByteString
In the return type of a call of `toByteString'
In the second argument of `(.)', namely `toByteString f'
D:\Projects\haskell\serialize\ex1.hs:122:21:
Couldn't match expected type `L.ByteString'
with actual type `bytestring-0.9.1.10:Data.ByteString.Lazy.Internal.ByteString'
In the first argument of `L.length', namely `fs'
In the first argument of `(+)', namely `L.length fs'
In the first argument of `(==)', namely `L.length fs + L.length is'
[Finished]