graphql-0.7.0.0: Haskell GraphQL implementation

Safe HaskellSafe
LanguageHaskell2010

Language.GraphQL.Trans

Description

Monad transformer stack used by the GraphQL resolvers.

Synopsis

Documentation

newtype ActionT m a Source #

Monad transformer stack used by the resolvers to provide error handling and resolution context (resolver arguments).

Constructors

ActionT 
Instances
MonadTrans ActionT Source # 
Instance details

Defined in Language.GraphQL.Trans

Methods

lift :: Monad m => m a -> ActionT m a #

Monad m => Monad (ActionT m) Source # 
Instance details

Defined in Language.GraphQL.Trans

Methods

(>>=) :: ActionT m a -> (a -> ActionT m b) -> ActionT m b #

(>>) :: ActionT m a -> ActionT m b -> ActionT m b #

return :: a -> ActionT m a #

fail :: String -> ActionT m a #

Functor m => Functor (ActionT m) Source # 
Instance details

Defined in Language.GraphQL.Trans

Methods

fmap :: (a -> b) -> ActionT m a -> ActionT m b #

(<$) :: a -> ActionT m b -> ActionT m a #

Monad m => Applicative (ActionT m) Source # 
Instance details

Defined in Language.GraphQL.Trans

Methods

pure :: a -> ActionT m a #

(<*>) :: ActionT m (a -> b) -> ActionT m a -> ActionT m b #

liftA2 :: (a -> b -> c) -> ActionT m a -> ActionT m b -> ActionT m c #

(*>) :: ActionT m a -> ActionT m b -> ActionT m b #

(<*) :: ActionT m a -> ActionT m b -> ActionT m a #

Monad m => Alternative (ActionT m) Source # 
Instance details

Defined in Language.GraphQL.Trans

Methods

empty :: ActionT m a #

(<|>) :: ActionT m a -> ActionT m a -> ActionT m a #

some :: ActionT m a -> ActionT m [a] #

many :: ActionT m a -> ActionT m [a] #

Monad m => MonadPlus (ActionT m) Source # 
Instance details

Defined in Language.GraphQL.Trans

Methods

mzero :: ActionT m a #

mplus :: ActionT m a -> ActionT m a -> ActionT m a #

MonadIO m => MonadIO (ActionT m) Source # 
Instance details

Defined in Language.GraphQL.Trans

Methods

liftIO :: IO a -> ActionT m a #

newtype Context Source #

Resolution context holds resolver arguments.

Constructors

Context 

Fields

argument :: Monad m => Name -> ActionT m Value Source #

Retrieves an argument by its name. If the argument with this name couldn't be found, returns Null (i.e. the argument is assumed to be optional then).