
Isn't http://hackage.haskell.org/package/protocol-buffers doing the same
thing with records?
On Tue, 5 Apr 2016 at 07:30, Martijn Rijkeboer
How does this compare to https://hackage.haskell.org/package/protobuf?
It uses "simpler" types. The Foo type in protobuf would be like the following (from the manual):
data Foo = Foo { field1 :: Required 1 (Value Int64) , field2 :: Optional 2 (Value Text) , field3 :: Repeated 3 (Value Bool) } deriving (Generic, Show)
In protobuf-simple it would be like the following:
data Foo = Foo { field1 :: Int64 , field2 :: Maybe Text , field3 :: Seq Bool } deriving (Show, Eq, Ord)
Besides this, protobuf-simple uses newtypes for messages with only one field (something we use very often).
Kind regards,
Martijn Rijkeboer
_______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe