在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):kolmodin/binary开源软件地址(OpenSource Url):https://github.com/kolmodin/binary开源编程语言(OpenSource Language):Haskell 99.6%开源软件介绍(OpenSource Introduction):binary packageEfficient, pure binary serialisation using lazy ByteStrings. The Installing binary from Hackage
More recent versions of
Building binary
Run the test suite.
Using binaryFirst:
and then write an instance of Binary for the type you wish to serialise.
An example doing exactly this can be found in the Data.Binary module.
You can also use the Data.Binary.Builder module to efficiently build
lazy bytestrings using the More information in the haddock documentation. Deriving binary instances using GHC's GenericBeginning with GHC 7.2, it is possible to use binary serialization without writing any instance boilerplate code. {-# LANGUAGE DeriveGeneric #-}
import Data.Binary
import GHC.Generics (Generic)
data Foo = Foo deriving (Generic)
-- GHC will automatically fill out the instance
instance Binary Foo Contributors
For a full list of contributors, see here. |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论