Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- class EncodeWrapper (wrapper :: Type -> Type) where
- encodeWrapper :: Monad m => (a -> m (ResolverValue m)) -> wrapper a -> m (ResolverValue m)
- class DecodeWrapper (f :: Type -> Type) where
- decodeWrapper :: (Monad m, DecodeWrapperConstraint f a) => (ValidValue -> m a) -> ValidValue -> ExceptT GQLError m (f a)
- type family DecodeWrapperConstraint (f :: Type -> Type) a :: Constraint where ...
Documentation
class EncodeWrapper (wrapper :: Type -> Type) where Source #
GraphQL Wrapper Serializer
encodeWrapper :: Monad m => (a -> m (ResolverValue m)) -> wrapper a -> m (ResolverValue m) Source #
Instances
class DecodeWrapper (f :: Type -> Type) where Source #
GraphQL Wrapper Deserializer
decodeWrapper :: (Monad m, DecodeWrapperConstraint f a) => (ValidValue -> m a) -> ValidValue -> ExceptT GQLError m (f a) Source #
Instances
type family DecodeWrapperConstraint (f :: Type -> Type) a :: Constraint where ... Source #
DecodeWrapperConstraint Set a = Ord a | |
DecodeWrapperConstraint f a = () |