google / proto-lens

API for protocol buffers using modern Haskell language and library patterns.
https://google.github.io/proto-lens
BSD 3-Clause "New" or "Revised" License
460 stars 110 forks source link

Examples of encoding and decoding #226

Open awalterschulze opened 6 years ago

awalterschulze commented 6 years ago

I was going through the examples from the tutorial https://github.com/google/proto-lens#tutorial and I couldn't find how to encode (marshal) or decode (unmarshal) a message. Maybe this is something that could also quickly be shown?

Also the link in the tutorial section to reference document, TYPES.md is broken.

judah commented 6 years ago

Thanks for the suggestions; that sounds like a good thing to add to the tutorial. In the meantime you can find the documentation for encoding/decoding here: http://hackage.haskell.org/package/proto-lens-0.4.0.0/docs/Data-ProtoLens-Encoding.html