Safe Haskell | None |
---|---|
Language | Haskell2010 |
Database.V5.Bloodhound.Internal.StringlyTyped
- newtype StringlyTypedDouble = StringlyTypedDouble {}
- newtype StringlyTypedInt = StringlyTypedInt {}
- newtype StringlyTypedBool = StringlyTypedBool {}
- unStringlyTypeJSON :: Value -> Value
Documentation
unStringlyTypeJSON :: Value -> Value Source #
For some reason in several settings APIs, all leaf values get returned as strings. This function attempts to recover from this for all non-recursive JSON types. If nothing can be done, the value is left alone.