Safe Haskell | None |
---|---|
Language | Haskell2010 |
Instances for the containers library
Documentation
encodeMap :: ( Flat ( ContainerKey map), Flat ( MapValue map), IsMap map) => map -> Encoding Source #
Encode an instance of IsMap, as a list of (Key,Value) tuples
decodeMap :: ( Flat ( ContainerKey map), Flat ( MapValue map), IsMap map) => Get map Source #
Decode an instance of IsMap, as a list of (Key,Value) tuples
Orphan instances
Flat a => Flat ( IntMap a) Source # |
Maps are defined as a list of (Key,Value) tuples: Map = List (Key,Value) List a = Nil | Cons a (List a)
|
Flat a => Flat ( Tree a) Source # |
|
Flat a => Flat ( Seq a) Source # |
Data.Sequence.Seq is encoded as a list.
In flat <0.4, it was encoded as an Array. If you want to restore the previous behaviour, use AsArray:
|
( Flat a, Ord a) => Flat ( Set a) Source # |
Data.Set is encoded as a list
|
( Flat a, Flat b, Ord a) => Flat ( Map a b) Source # |
Maps are encoded as lists:
Key/Values are encoded in order:
IntMap and Map are encoded in the same way:
|