Safe Haskell | None |
---|---|
Language | Haskell2010 |
Literal GraphQL values.
Documentation
class FromValue a where Source #
a
can be converted from a GraphQL Value
to a Haskell value.
The FromValue
instance converts Value
to the type expected by the
handler function. It is the boundary between incoming data and your custom
application Haskell types.
FromValue
has a generic instance for converting input objects to
records.
fromValue :: Value' ConstScalar -> Either Text a Source #
Convert an already-parsed value into a Haskell value, generally to be passed to a handler.
fromValue :: (Generic a, GenericFromValue (Rep a)) => Value' ConstScalar -> Either Text a Source #
Convert an already-parsed value into a Haskell value, generally to be passed to a handler.