Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- flattenObject ∷ Text → Object → Object
- unflattenObject ∷ Text → Object → Object
- mergeObject ∷ Object → Object → Object
- mergeValue ∷ Value → Value → Value
- objToHm ∷ Object → HashMap Text Value
- hmToObj ∷ HashMap Text Value → Object
Documentation
flattenObject ∷ Text → Object → Object Source #
Turn a nested object into a "flat" object where the keys represent paths into the original
object. The keys in the result will be the keys in the original path, separated by sep
.
The inverse of unflattenObject
.
unflattenObject ∷ Text → Object → Object Source #
Turn a "flat" object whose keys represent paths into an unflattened object.
The keys in the result will be the resulting path, separated by sep
.
The inverse of flattenObject
.
mergeObject ∷ Object → Object → Object Source #
Merge two objects, merging the values where both sides have an entry for a key rather than taking the first.
mergeValue ∷ Value → Value → Value Source #
Merge two values, merging the objects using mergeObject
. Can't merge anything else.