Safe Haskell | None |
---|---|
Language | Haskell2010 |
Flat Instances for common, primitive and abstract data types for which instances cannot be automatically derived
- sizeMap :: (Flat (ContainerKey r), Flat (MapValue r), IsMap r) => Size r
- encodeMap :: (Flat (ContainerKey map), Flat (MapValue map), IsMap map) => map -> Encoding
- decodeMap :: (Flat (ContainerKey map), Flat (MapValue map), IsMap map) => Get map
- sizeSequence :: (IsSequence mono, Flat (Element mono)) => mono -> NumBits -> NumBits
- encodeSequence :: (Flat (Element mono), IsSequence mono) => mono -> Encoding
- decodeSequence :: (Flat (Element b), IsSequence b) => Get b
Documentation
sizeMap :: (Flat (ContainerKey r), Flat (MapValue r), IsMap r) => Size r Source #
Calculate size of an instance of IsMap
encodeMap :: (Flat (ContainerKey map), Flat (MapValue map), IsMap map) => map -> Encoding Source #
Encode an instance of IsMap, as a list
decodeMap :: (Flat (ContainerKey map), Flat (MapValue map), IsMap map) => Get map Source #
Decode an instance of IsMap, as a list
sizeSequence :: (IsSequence mono, Flat (Element mono)) => mono -> NumBits -> NumBits Source #
Calculate size of an instance of IsSequence
encodeSequence :: (Flat (Element mono), IsSequence mono) => mono -> Encoding Source #
Encode an instance of IsSequence, as an array
decodeSequence :: (Flat (Element b), IsSequence b) => Get b Source #
Decode an instance of IsSequence, as an array