protobuf-simple 0.1.0.5 → 0.1.1.0
raw patch · 3 files changed
+20/−20 lines, 3 filesnew-component:exe:protobuf-simple-protocPVP: major bump suggested
API removals or changes: PVP suggests a major version bump
API changes (from Hackage documentation)
+ Data.ProtoBufInt: False :: Bool
+ Data.ProtoBufInt: Just :: a -> Maybe a
+ Data.ProtoBufInt: Nothing :: Maybe a
+ Data.ProtoBufInt: True :: Bool
+ Data.ProtoBufInt: class Eq a
+ Data.ProtoBufInt: class Eq a => Ord a
+ Data.ProtoBufInt: class Show a
+ Data.ProtoBufInt: data Bool
+ Data.ProtoBufInt: data ByteString
+ Data.ProtoBufInt: data Double
+ Data.ProtoBufInt: data Float
+ Data.ProtoBufInt: data Int32
+ Data.ProtoBufInt: data Int64
+ Data.ProtoBufInt: data Maybe a
+ Data.ProtoBufInt: data Seq a
+ Data.ProtoBufInt: data Text
+ Data.ProtoBufInt: data Word32
+ Data.ProtoBufInt: data Word64
+ Data.ProtoBufInt: fromList :: Ord a => [a] -> Set a
+ Data.ProtoBufInt: pack :: String -> Text
+ Data.ProtoBufInt: return :: Monad m => a -> m a
- Data.ProtoBufInt: class Mergeable a where merge _ b = b
+ Data.ProtoBufInt: class Mergeable a
Files
- README.md +7/−7
- app/Parser.hs +4/−4
- protobuf-simple.cabal +9/−9
README.md view
@@ -2,18 +2,18 @@ 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 `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: +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: ``` -$ protoc data/Types.proto +$ protobuf-simple-protoc data/Types.proto ``` In the example below, the `CustomType` is a Haskell type that was generated -with the `protoc` executable. The `encCustomType` function encodes a CustomType -into a ByteString. The `decCustomType` function decodes a ByteString into -either a CustomType or an error. +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. ``` module Codec where
app/Parser.hs view
@@ -4,7 +4,7 @@ -- License: MIT -- Maintainer: Martijn Rijkeboer <mrr@sru-systems.com> ----- Main module for the protoc executable.+-- Main module for the protobuf-simple-protoc executable. module Main where @@ -98,12 +98,12 @@ noFiles :: String-noFiles = "protoc: no file given\n" ++ usage+noFiles = "protobuf-simple-protoc: no file given\n" ++ usage usage :: String-usage = usageInfo "Usage: protoc [OPTION]... FILES" options+usage = usageInfo "Usage: protobuf-simple-protoc [OPTION]... FILES" options version :: String-version = "protoc 0.0.1"+version = "protobuf-simple-protoc 0.1.1.0"
protobuf-simple.cabal view
@@ -3,7 +3,7 @@ name: protobuf-simple synopsis: Simple Protocol Buffers library (proto2)-version: 0.1.0.5+version: 0.1.1.0 homepage: https://github.com/sru-systems/protobuf-simple license: MIT license-file: LICENSE@@ -22,16 +22,16 @@ . 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 `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:+ 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: .- > $ protoc data/Types.proto+ > $ protobuf-simple-protoc data/Types.proto . In the example below, the `CustomType` is a Haskell type that was generated- with the `protoc` executable. The `encCustomType` function encodes a- CustomType into a ByteString. The `decCustomType` function decodes a- ByteString into either a CustomType or an error.+ 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. . > module Codec where >@@ -75,7 +75,7 @@ ghc-options: -Wall -executable protoc+executable protobuf-simple-protoc hs-source-dirs: app, src main-is: Parser.hs other-modules: Parser.CaseUtils