morpheus-graphql-0.7.0: Morpheus GraphQL

Safe HaskellNone
LanguageHaskell2010

Data.Morpheus.Types.Internal.AST

Synopsis

Documentation

type Key = Text Source #

type Collection a = [(Key, a)] Source #

data Ref Source #

Constructors

Ref 
Instances
Eq Ref Source # 
Instance details

Defined in Data.Morpheus.Types.Internal.AST.Base

Methods

(==) :: Ref -> Ref -> Bool #

(/=) :: Ref -> Ref -> Bool #

Ord Ref Source # 
Instance details

Defined in Data.Morpheus.Types.Internal.AST.Base

Methods

compare :: Ref -> Ref -> Ordering #

(<) :: Ref -> Ref -> Bool #

(<=) :: Ref -> Ref -> Bool #

(>) :: Ref -> Ref -> Bool #

(>=) :: Ref -> Ref -> Bool #

max :: Ref -> Ref -> Ref #

min :: Ref -> Ref -> Ref #

Show Ref Source # 
Instance details

Defined in Data.Morpheus.Types.Internal.AST.Base

Methods

showsPrec :: Int -> Ref -> ShowS #

show :: Ref -> String #

showList :: [Ref] -> ShowS #

Lift Ref Source # 
Instance details

Defined in Data.Morpheus.Types.Internal.AST.Base

Methods

lift :: Ref -> Q Exp #

data Position Source #

Constructors

Position 

Fields

Instances
Show Position Source # 
Instance details

Defined in Data.Morpheus.Types.Internal.AST.Base

Generic Position Source # 
Instance details

Defined in Data.Morpheus.Types.Internal.AST.Base

Associated Types

type Rep Position :: Type -> Type #

Methods

from :: Position -> Rep Position x #

to :: Rep Position x -> Position #

Lift Position Source # 
Instance details

Defined in Data.Morpheus.Types.Internal.AST.Base

Methods

lift :: Position -> Q Exp #

ToJSON Position Source # 
Instance details

Defined in Data.Morpheus.Types.Internal.AST.Base

FromJSON Position Source # 
Instance details

Defined in Data.Morpheus.Types.Internal.AST.Base

type Rep Position Source # 
Instance details

Defined in Data.Morpheus.Types.Internal.AST.Base

type Rep Position = D1 (MetaData "Position" "Data.Morpheus.Types.Internal.AST.Base" "morpheus-graphql-0.7.0-1athT4IXRfbLIB7DZAaUGv" False) (C1 (MetaCons "Position" PrefixI True) (S1 (MetaSel (Just "line") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Int) :*: S1 (MetaSel (Just "column") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Int)))

type Name = Key Source #

data Value Source #

Instances
Show Value Source # 
Instance details

Defined in Data.Morpheus.Types.Internal.AST.Value

Methods

showsPrec :: Int -> Value -> ShowS #

show :: Value -> String #

showList :: [Value] -> ShowS #

Generic Value Source # 
Instance details

Defined in Data.Morpheus.Types.Internal.AST.Value

Associated Types

type Rep Value :: Type -> Type #

Methods

from :: Value -> Rep Value x #

to :: Rep Value x -> Value #

Lift Value Source # 
Instance details

Defined in Data.Morpheus.Types.Internal.AST.Value

Methods

lift :: Value -> Q Exp #

ToJSON Value Source # 
Instance details

Defined in Data.Morpheus.Types.Internal.AST.Value

FromJSON Value Source # 
Instance details

Defined in Data.Morpheus.Types.Internal.AST.Value

GQLValue Value Source # 
Instance details

Defined in Data.Morpheus.Types.Internal.AST.Value

type Rep Value Source # 
Instance details

Defined in Data.Morpheus.Types.Internal.AST.Value

data ScalarValue Source #

Primitive Values for GQLScalar: ScalarValue, ScalarValue, ScalarValue, Boolean. for performance reason type Text represents GraphQl ScalarValue value

Instances
Show ScalarValue Source # 
Instance details

Defined in Data.Morpheus.Types.Internal.AST.Value

Generic ScalarValue Source # 
Instance details

Defined in Data.Morpheus.Types.Internal.AST.Value

Associated Types

type Rep ScalarValue :: Type -> Type #

Lift ScalarValue Source # 
Instance details

Defined in Data.Morpheus.Types.Internal.AST.Value

Methods

lift :: ScalarValue -> Q Exp #

ToJSON ScalarValue Source # 
Instance details

Defined in Data.Morpheus.Types.Internal.AST.Value

FromJSON ScalarValue Source # 
Instance details

Defined in Data.Morpheus.Types.Internal.AST.Value

type Rep ScalarValue Source # 
Instance details

Defined in Data.Morpheus.Types.Internal.AST.Value

type Object = [(Text, Value)] Source #

data Selection args rec Source #

Instances
(Show args, Show rec) => Show (Selection args rec) Source # 
Instance details

Defined in Data.Morpheus.Types.Internal.AST.Selection

Methods

showsPrec :: Int -> Selection args rec -> ShowS #

show :: Selection args rec -> String #

showList :: [Selection args rec] -> ShowS #

(Lift args, Lift rec) => Lift (Selection args rec) Source # 
Instance details

Defined in Data.Morpheus.Types.Internal.AST.Selection

Methods

lift :: Selection args rec -> Q Exp #

data Operation args sel Source #

Instances
(Show args, Show sel) => Show (Operation args sel) Source # 
Instance details

Defined in Data.Morpheus.Types.Internal.AST.Operation

Methods

showsPrec :: Int -> Operation args sel -> ShowS #

show :: Operation args sel -> String #

showList :: [Operation args sel] -> ShowS #

(Lift args, Lift sel) => Lift (Operation args sel) Source # 
Instance details

Defined in Data.Morpheus.Types.Internal.AST.Operation

Methods

lift :: Operation args sel -> Q Exp #

data DataTyCon a Source #

Instances
Show a => Show (DataTyCon a) Source # 
Instance details

Defined in Data.Morpheus.Types.Internal.AST.Data

Lift a => Lift (DataTyCon a) Source # 
Instance details

Defined in Data.Morpheus.Types.Internal.AST.Data

Methods

lift :: DataTyCon a -> Q Exp #

data ArgsType Source #

Constructors

ArgsType 
Instances
Show ArgsType Source # 
Instance details

Defined in Data.Morpheus.Types.Internal.AST.Data

Lift ArgsType Source # 
Instance details

Defined in Data.Morpheus.Types.Internal.AST.Data

Methods

lift :: ArgsType -> Q Exp #

lookupInputType :: Failure e m => Key -> DataTypeLib -> e -> m DataType Source #

coerceDataObject :: Failure error m => error -> DataType -> m DataObject Source #

getDataType :: Failure error m => Key -> DataTypeLib -> error -> m DataType Source #

lookupDataObject :: (Monad m, Failure e m) => e -> Key -> DataTypeLib -> m DataObject Source #

lookupDataUnion :: (Monad m, Failure e m) => e -> Key -> DataTypeLib -> m DataUnion Source #

lookupType :: Failure e m => e -> [(Key, a)] -> Key -> m a Source #

lookupField :: Failure error m => Key -> [(Key, field)] -> error -> m field Source #

lookupUnionTypes :: (Monad m, Failure GQLErrors m) => Position -> Key -> DataTypeLib -> DataField -> m [DataObject] Source #

lookupSelectionField :: Failure GQLErrors Validation => Position -> Key -> DataObject -> Validation DataField Source #

lookupFieldAsSelectionSet :: (Monad m, Failure GQLErrors m) => Position -> Key -> DataTypeLib -> DataField -> m DataObject Source #

data Meta Source #

Instances
Show Meta Source # 
Instance details

Defined in Data.Morpheus.Types.Internal.AST.Data

Methods

showsPrec :: Int -> Meta -> ShowS #

show :: Meta -> String #

showList :: [Meta] -> ShowS #

Lift Meta Source # 
Instance details

Defined in Data.Morpheus.Types.Internal.AST.Data

Methods

lift :: Meta -> Q Exp #

data Directive Source #

Constructors

Directive 

fromDataType :: (DataTyCon () -> v) -> DataType -> v Source #

type TypeUpdater = LibUpdater DataTypeLib Source #

data TypeD Source #

Constructors

TypeD 

Fields

Instances
Show TypeD Source # 
Instance details

Defined in Data.Morpheus.Types.Internal.AST.Data

Methods

showsPrec :: Int -> TypeD -> ShowS #

show :: TypeD -> String #

showList :: [TypeD] -> ShowS #

data ConsD Source #

Constructors

ConsD 

Fields

Instances
Show ConsD Source # 
Instance details

Defined in Data.Morpheus.Types.Internal.AST.Data

Methods

showsPrec :: Int -> ConsD -> ShowS #

show :: ConsD -> String #

showList :: [ConsD] -> ShowS #

data GQLQuery Source #

Instances
Show GQLQuery Source # 
Instance details

Defined in Data.Morpheus.Types.Internal.AST

Lift GQLQuery Source # 
Instance details

Defined in Data.Morpheus.Types.Internal.AST

Methods

lift :: GQLQuery -> Q Exp #