zm-0.3.2: Language independent, reproducible, absolute types

Safe HaskellNone
LanguageHaskell2010

ZM.Dynamic

Description

Dynamical decoding of serialised typed values

Synopsis

Documentation

decodeAbsTypeModel :: AbsTypeModel -> ByteString -> Decoded Value Source #

Decode a Flat encoded value with a known type model to the corresponding Value

typeDecoder :: AbsTypeModel -> Get Value Source #

Returns a decoder for the type defined by the given model

typeDecoderMap :: AbsTypeModel -> MapTypeDecoder Source #

Returns decoders for all types in the given model

type MapTypeDecoder = Map (Type AbsRef) (Get Value) Source #

A mapping between references to absolute types and the corresponding decoder