Safe Haskell | None |
---|---|
Language | Haskell2010 |
Module defining the individual base wire types (e.g. VarInt, Fixed64) and how to encode/decode them.
Synopsis
- data WireType a where
- data SomeWireType where
- SomeWireType :: WireType a -> SomeWireType
- data WireValue = WireValue !(WireType a) !a
- newtype Tag = Tag {}
- data TaggedValue = TaggedValue !Tag !WireValue
- getTaggedValue :: Parser TaggedValue
- putTaggedValue :: TaggedValue -> Builder
- getWireValue :: WireType a -> Parser a
- putWireValue :: WireType a -> a -> Builder
- data Equal a b where
- equalWireTypes :: Monad m => WireType a -> WireType b -> m (Equal a b)
- decodeFieldSet :: ByteString -> Either String [TaggedValue]
Documentation
data SomeWireType where Source #
SomeWireType :: WireType a -> SomeWireType |
A tag that identifies a particular field of the message when converting to/from the wire format.
data TaggedValue Source #
Instances
Eq TaggedValue Source # | |
Defined in Data.ProtoLens.Encoding.Wire (==) :: TaggedValue -> TaggedValue -> Bool # (/=) :: TaggedValue -> TaggedValue -> Bool # | |
Ord TaggedValue Source # | |
Defined in Data.ProtoLens.Encoding.Wire compare :: TaggedValue -> TaggedValue -> Ordering # (<) :: TaggedValue -> TaggedValue -> Bool # (<=) :: TaggedValue -> TaggedValue -> Bool # (>) :: TaggedValue -> TaggedValue -> Bool # (>=) :: TaggedValue -> TaggedValue -> Bool # max :: TaggedValue -> TaggedValue -> TaggedValue # min :: TaggedValue -> TaggedValue -> TaggedValue # | |
Show TaggedValue Source # | |
Defined in Data.ProtoLens.Encoding.Wire showsPrec :: Int -> TaggedValue -> ShowS # show :: TaggedValue -> String # showList :: [TaggedValue] -> ShowS # | |
NFData TaggedValue Source # | |
Defined in Data.ProtoLens.Encoding.Wire rnf :: TaggedValue -> () # |
putTaggedValue :: TaggedValue -> Builder Source #
getWireValue :: WireType a -> Parser a Source #
putWireValue :: WireType a -> a -> Builder Source #
decodeFieldSet :: ByteString -> Either String [TaggedValue] Source #