Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- newtype StringlyTypedDouble = StringlyTypedDouble {}
- newtype StringlyTypedInt = StringlyTypedInt {}
- newtype StringlyTypedBool = StringlyTypedBool {}
- unStringlyTypeJSON :: Value -> Value
Documentation
newtype StringlyTypedDouble Source #
Instances
newtype StringlyTypedInt Source #
Instances
FromJSON StringlyTypedInt Source # | |
Defined in Database.Bloodhound.Internal.StringlyTyped parseJSON :: Value -> Parser StringlyTypedInt # parseJSONList :: Value -> Parser [StringlyTypedInt] # |
newtype StringlyTypedBool Source #
Instances
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.