| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Data.ProtoLens.Encoding.Wire
Description
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 #
Constructors
| SomeWireType :: WireType a -> SomeWireType |
Instances
| Eq WireValue Source # | |
| Ord WireValue Source # | |
| Show WireValue Source # | |
| NFData WireValue Source # | |
Defined in Data.ProtoLens.Encoding.Wire | |
A tag that identifies a particular field of the message when converting to/from the wire format.
data TaggedValue Source #
Constructors
| TaggedValue !Tag !WireValue |
Instances
| Eq TaggedValue Source # | |
Defined in Data.ProtoLens.Encoding.Wire | |
| Ord TaggedValue Source # | |
Defined in Data.ProtoLens.Encoding.Wire Methods 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 Methods showsPrec :: Int -> TaggedValue -> ShowS # show :: TaggedValue -> String # showList :: [TaggedValue] -> ShowS # | |
| NFData TaggedValue Source # | |
Defined in Data.ProtoLens.Encoding.Wire Methods rnf :: TaggedValue -> () # | |
putTaggedValue :: TaggedValue -> Builder Source #
getWireValue :: WireType a -> Parser a Source #
putWireValue :: WireType a -> a -> Builder Source #
decodeFieldSet :: ByteString -> Either String [TaggedValue] Source #