| Safe Haskell | Safe-Inferred |
|---|---|
| Language | Haskell2010 |
Language.GraphQL.Class
Description
ToGraphQL and FromGraphQL typeclasses used for user-defined type conversion.
Synopsis
- class FromGraphQL a where
- fromGraphQL :: Value -> Maybe a
- class ToGraphQL a where
Documentation
class FromGraphQL a where Source #
Instances of this typeclass can be used to convert GraphQL internal representation to user-defined type.
Methods
fromGraphQL :: Value -> Maybe a Source #
Instances
| FromGraphQL Int16 Source # | |
Defined in Language.GraphQL.Class | |
| FromGraphQL Int32 Source # | |
Defined in Language.GraphQL.Class | |
| FromGraphQL Int64 Source # | |
Defined in Language.GraphQL.Class | |
| FromGraphQL Int8 Source # | |
Defined in Language.GraphQL.Class | |
| FromGraphQL Text Source # | |
Defined in Language.GraphQL.Class | |
| FromGraphQL Bool Source # | |
Defined in Language.GraphQL.Class | |
| FromGraphQL Int Source # | |
Defined in Language.GraphQL.Class | |
| FromGraphQL a => FromGraphQL (Vector a) Source # | |
Defined in Language.GraphQL.Class | |
| FromGraphQL a => FromGraphQL (Maybe a) Source # | |
Defined in Language.GraphQL.Class | |
| FromGraphQL a => FromGraphQL [a] Source # | |
Defined in Language.GraphQL.Class Methods fromGraphQL :: Value -> Maybe [a] Source # | |
class ToGraphQL a where Source #
Instances of this typeclass can be converted to GraphQL internal representation.
Instances
| ToGraphQL Int16 Source # | |
| ToGraphQL Int32 Source # | |
| ToGraphQL Int64 Source # | |
| ToGraphQL Int8 Source # | |
| ToGraphQL Text Source # | |
| ToGraphQL Bool Source # | |
| ToGraphQL Int Source # | |
| ToGraphQL a => ToGraphQL (Vector a) Source # | |
| ToGraphQL a => ToGraphQL (Maybe a) Source # | |
| ToGraphQL a => ToGraphQL [a] Source # | |
Defined in Language.GraphQL.Class | |