Safe Haskell | None |
---|---|
Language | Haskell98 |
Synopsis
- 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 Lexeme
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
class TextType a where Source #
Printable and readable field types
tellT :: String -> a -> Output Source #
getT :: Stream s Identity Char => String -> Parsec s () a Source #
Instances
TextType Bool Source # | |
TextType Double Source # | |
TextType Float Source # | |
TextType Int32 Source # | |
TextType Int64 Source # | |
TextType Word32 Source # | |
TextType Word64 Source # | |
TextType ByteString Source # | |
Defined in Text.ProtocolBuffers.TextMessage | |
TextType Utf8 Source # | |
TextType a => TextType (Maybe a) Source # | |
TextType a => TextType (Seq a) Source # | |
tellSubMessage :: TextMsg a => String -> a -> Output Source #