reified-records-0.1.0.0: Reify records to Maps and back again
Data.Generics.Reify.Record
Synopsis
reify :: Data a => Map String Dynamic -> Maybe aSource
Reify a Map of strings to an arbitrary type. If the type is a record, each of its field names will be looked up in the record. If any of the types don't match or if a isn't a record, Nothing will be returned.
Map
a
Nothing
reflect :: Data a => a -> Maybe (Map String Dynamic)Source
If a is a record, this will return a Map where the keys are the field names and the values are wrapped in toDyn. Otherwise Nothing will be returned.
toDyn