<div style="white-space:pre-wrap">Isn't <a href="http://hackage.haskell.org/package/protocol-buffers">http://hackage.haskell.org/package/protocol-buffers</a> doing the same thing with records?</div><br><div class="gmail_quote"><div dir="ltr">On Tue, 5 Apr 2016 at 07:30, Martijn Rijkeboer <<a href="mailto:mrr@sru-systems.com">mrr@sru-systems.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">> How does this compare to <a href="https://hackage.haskell.org/package/protobuf" rel="noreferrer" target="_blank">https://hackage.haskell.org/package/protobuf</a>?<br>
<br>
It uses "simpler" types. The Foo type in protobuf would be like<br>
the following (from the manual):<br>
<br>
  data Foo = Foo<br>
    { field1 :: Required 1 (Value Int64)<br>
    , field2 :: Optional 2 (Value Text)<br>
    , field3 :: Repeated 3 (Value Bool)<br>
    } deriving (Generic, Show)<br>
<br>
<br>
In protobuf-simple it would be like the following:<br>
<br>
  data Foo = Foo<br>
    { field1 :: Int64<br>
    , field2 :: Maybe Text<br>
    , field3 :: Seq Bool<br>
    } deriving (Show, Eq, Ord)<br>
<br>
<br>
Besides this, protobuf-simple uses newtypes for messages with only one<br>
field (something we use very often).<br>
<br>
Kind regards,<br>
<br>
<br>
Martijn Rijkeboer<br>
<br>
<br>
_______________________________________________<br>
Haskell-Cafe mailing list<br>
<a href="mailto:Haskell-Cafe@haskell.org" target="_blank">Haskell-Cafe@haskell.org</a><br>
<a href="http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe" rel="noreferrer" target="_blank">http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe</a><br>
</blockquote></div>