Safe Haskell | None |
---|---|
Language | Haskell98 |
Functions for converting protocol buffers to a human-readable text format.
- showMessage :: Message msg => msg -> String
- showMessageShort :: Message msg => msg -> String
- pprintMessage :: Message msg => msg -> Doc
- readMessage :: Message msg => Text -> Either String msg
- readMessageOrDie :: Message msg => Text -> msg
Documentation
showMessage :: Message msg => msg -> String Source #
Convert the given message into a human-readable String
.
showMessageShort :: Message msg => msg -> String Source #
Serializes a proto as a string on a single line. Useful for debugging
and error messages like .DebugString()
in other languages.
pprintMessage :: Message msg => msg -> Doc Source #
Pretty-print the given message into a human-readable form.