logo
首页技术栈工具库讨论
protobuf-simple

protobuf-simple

An Haskell implementation of Google's Protocol Buffers version 2 with an emphasis on simplicity. The implementation consists of a library for encoding and decoding of data and the protobuf-simple-protoc executable for generating Haskell types from proto files. In fact, the types that are used in the tests are generated with the following command: In the example below, the CustomType is a Haskell type that was generated with the protobuf-simple-protoc executable. The encCustomType function encodes a CustomType into a ByteString. The decCustomType function decodes a ByteString into either a CustomType or an error. The library exposes two modules, Data.ProtoBuf, which is used for encoding and decoding and Data.ProtoBufInt, which is an internal module that is used by the generated types.
由 
bruceshi2021-01-15 收录
--
推荐
不推荐
更多信息
HACKAGE
carbal install protobuf-simple
查看
标签
根据用户添加的标签生成
暂无标签