Safe Haskell | None |
---|---|
Language | Haskell98 |
- messagePutText :: TextMsg a => a -> String
- messageGetText :: (TextMsg a, Stream s Identity Char) => s -> Either String a
- class TextMsg a where
- class TextType a where
- tellShow :: Show a => String -> a -> Output
- tellSubMessage :: TextMsg a => String -> a -> Output
- getRead :: forall a s. (Read a, Stream s Identity Char) => String -> Parsec s () a
- getSubMessage :: (Stream s Identity Char, TextMsg a) => String -> Parsec s () a
User API functions
Main encoding and decoding operations
messagePutText :: TextMsg a => a -> String Source
This writes message as text-format protobuf to String
messageGetText :: (TextMsg a, Stream s Identity Char) => s -> Either String a Source
This reads message as text-format protobuf from any Parsec-compatible source. Input must be completely consumed.
Internal API functions
Printable and readable messages
Printable and readable field types
tellSubMessage :: TextMsg a => String -> a -> Output Source