morpheus-graphql-core-0.27.3: Morpheus GraphQL Core
Safe HaskellSafe-Inferred
LanguageHaskell2010

Data.Morpheus.Types.Internal.AST

Synopsis

Documentation

data Ref name Source #

Document Reference with its Position

Position is used only for error messages. that means:

Ref "a" 1 === Ref "a" 3

Constructors

Ref 

Fields

Instances

Instances details
(Eq name, Hashable name) => KeyOf name (Ref name) Source # 
Instance details

Defined in Data.Morpheus.Ext.KeyOf

Methods

keyOf :: Ref name -> name Source #

Show name => Show (Ref name) Source # 
Instance details

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

Methods

showsPrec :: Int -> Ref name -> ShowS #

show :: Ref name -> String #

showList :: [Ref name] -> ShowS #

Eq name => Eq (Ref name) Source # 
Instance details

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

Methods

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

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

Ord name => Ord (Ref name) Source # 
Instance details

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

Methods

compare :: Ref name -> Ref name -> Ordering #

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

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

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

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

max :: Ref name -> Ref name -> Ref name #

min :: Ref name -> Ref name -> Ref name #

(Monad m, MonadError GQLError m) => Merge (HistoryT m) UnionTag Source # 
Instance details

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

(Monad m, MonadError GQLError m, Merge (HistoryT m) (SelectionSet s)) => Merge (HistoryT m) (Selection s) Source # 
Instance details

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

Methods

merge :: Selection s -> Selection s -> HistoryT m (Selection s) Source #

(Monad m, MonadError GQLError m, Merge (HistoryT m) (SelectionSet s)) => Merge (HistoryT m) (SelectionContent s) Source # 
Instance details

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

Lift name => Lift (Ref name :: Type) Source # 
Instance details

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

Methods

lift :: Quote m => Ref name -> m Exp #

liftTyped :: forall (m :: Type -> Type). Quote m => Ref name -> Code m (Ref name) #

data Position Source #

Constructors

Position 

Fields

Instances

Instances details
FromJSON Position Source # 
Instance details

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

ToJSON 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 #

Show Position Source # 
Instance details

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

Eq Position Source # 
Instance details

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

Ord Position Source # 
Instance details

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

Hashable Position Source # 
Instance details

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

Methods

hashWithSalt :: Int -> Position -> Int #

hash :: Position -> Int #

Lift Position Source # 
Instance details

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

Methods

lift :: Quote m => Position -> m Exp #

liftTyped :: forall (m :: Type -> Type). Quote m => Position -> Code m Position #

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-core-0.27.3-7plQmdT9PxpJTKqPgX8pDL" '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 FieldName = Name 'FIELD Source #

type CONST = 'CONST Source #

type VALID = 'VALID Source #

type RAW = 'RAW Source #

data Value (stage :: Stage) where Source #

Constructors

ResolvedVariable :: Ref FieldName -> Variable VALID -> Value CONST 
VariableValue :: Ref FieldName -> Value RAW 
Object :: Object stage -> Value stage 
List :: [Value stage] -> Value stage 
Enum :: TypeName -> Value stage 
Scalar :: ScalarValue -> Value stage 
Null :: Value stage 

Instances

Instances details
Lift (Value a :: Type) Source # 
Instance details

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

Methods

lift :: Quote m => Value a -> m Exp #

liftTyped :: forall (m :: Type -> Type). Quote m => Value a -> Code m (Value a) #

FromJSON (Value a) Source # 
Instance details

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

ToJSON (Value a) Source # 
Instance details

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

IsString (Value stage) Source # 
Instance details

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

Methods

fromString :: String -> Value stage #

Show (Value a) Source # 
Instance details

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

Methods

showsPrec :: Int -> Value a -> ShowS #

show :: Value a -> String #

showList :: [Value a] -> ShowS #

Eq (Value s) Source # 
Instance details

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

Methods

(==) :: Value s -> Value s -> Bool #

(/=) :: Value s -> Value s -> Bool #

Hashable (Value a) Source # 
Instance details

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

Methods

hashWithSalt :: Int -> Value a -> Int #

hash :: Value a -> Int #

RenderGQL (Value a) Source # 
Instance details

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

Methods

renderGQL :: Value a -> Rendering Source #

Msg (Value a) Source # 
Instance details

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

Methods

msg :: Value a -> GQLError Source #

data ScalarValue Source #

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

Instances

Instances details
FromJSON ScalarValue Source # 
Instance details

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

ToJSON ScalarValue Source # 
Instance details

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

IsString 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 #

Show ScalarValue Source # 
Instance details

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

Eq ScalarValue Source # 
Instance details

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

RenderGQL ScalarValue Source # 
Instance details

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

Methods

renderGQL :: ScalarValue -> Rendering Source #

Lift ScalarValue Source # 
Instance details

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

Methods

lift :: Quote m => ScalarValue -> m Exp #

liftTyped :: forall (m :: Type -> Type). Quote m => ScalarValue -> Code m ScalarValue #

type Rep ScalarValue Source # 
Instance details

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

data Argument (valid :: Stage) Source #

Instances

Instances details
NameCollision GQLError (Argument s) Source # 
Instance details

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

KeyOf FieldName (Argument stage) Source # 
Instance details

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

Methods

keyOf :: Argument stage -> FieldName Source #

Generic (Argument valid) Source # 
Instance details

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

Associated Types

type Rep (Argument valid) :: Type -> Type #

Methods

from :: Argument valid -> Rep (Argument valid) x #

to :: Rep (Argument valid) x -> Argument valid #

Show (Argument valid) Source # 
Instance details

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

Methods

showsPrec :: Int -> Argument valid -> ShowS #

show :: Argument valid -> String #

showList :: [Argument valid] -> ShowS #

Eq (Argument valid) Source # 
Instance details

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

Methods

(==) :: Argument valid -> Argument valid -> Bool #

(/=) :: Argument valid -> Argument valid -> Bool #

Hashable (Argument valid) Source # 
Instance details

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

Methods

hashWithSalt :: Int -> Argument valid -> Int #

hash :: Argument valid -> Int #

RenderGQL (Argument s) Source # 
Instance details

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

Methods

renderGQL :: Argument s -> Rendering Source #

Lift (Argument valid :: Type) Source # 
Instance details

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

Methods

lift :: Quote m => Argument valid -> m Exp #

liftTyped :: forall (m :: Type -> Type). Quote m => Argument valid -> Code m (Argument valid) #

type Rep (Argument valid) Source # 
Instance details

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

type Rep (Argument valid) = D1 ('MetaData "Argument" "Data.Morpheus.Types.Internal.AST.Fields" "morpheus-graphql-core-0.27.3-7plQmdT9PxpJTKqPgX8pDL" 'False) (C1 ('MetaCons "Argument" 'PrefixI 'True) (S1 ('MetaSel ('Just "argumentPosition") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Position) :*: (S1 ('MetaSel ('Just "argumentName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 FieldName) :*: S1 ('MetaSel ('Just "argumentValue") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Value valid)))))

type SelectionSet (s :: Stage) = MergeMap (ALLOW_DUPLICATES s) FieldName (Selection s) Source #

data SelectionContent (s :: Stage) where Source #

data Selection (s :: Stage) where Source #

Instances

Instances details
KeyOf FieldName (Selection s) Source # 
Instance details

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

Lift (Selection a :: Type) Source # 
Instance details

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

Methods

lift :: Quote m => Selection a -> m Exp #

liftTyped :: forall (m :: Type -> Type). Quote m => Selection a -> Code m (Selection a) #

Show (Selection a) Source # 
Instance details

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

Eq (Selection a) Source # 
Instance details

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

Methods

(==) :: Selection a -> Selection a -> Bool #

(/=) :: Selection a -> Selection a -> Bool #

Hashable (Selection s) Source # 
Instance details

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

Methods

hashWithSalt :: Int -> Selection s -> Int #

hash :: Selection s -> Int #

RenderGQL (Selection VALID) Source # 
Instance details

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

Methods

renderGQL :: Selection VALID -> Rendering Source #

SelectionTree (Selection VALID) Source # 
Instance details

Defined in Data.Morpheus.Types.SelectionTree

Associated Types

type ChildNode (Selection VALID) Source #

(Monad m, MonadError GQLError m, Merge (HistoryT m) (SelectionSet s)) => Merge (HistoryT m) (Selection s) Source # 
Instance details

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

Methods

merge :: Selection s -> Selection s -> HistoryT m (Selection s) Source #

type ChildNode (Selection VALID) Source # 
Instance details

Defined in Data.Morpheus.Types.SelectionTree

data Fragment (stage :: Stage) Source #

Instances

Instances details
NameCollision GQLError (Fragment s) Source # 
Instance details

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

KeyOf FragmentName (Fragment s) Source # 
Instance details

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

Generic (Fragment stage) Source # 
Instance details

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

Associated Types

type Rep (Fragment stage) :: Type -> Type #

Methods

from :: Fragment stage -> Rep (Fragment stage) x #

to :: Rep (Fragment stage) x -> Fragment stage #

Show (Fragment stage) Source # 
Instance details

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

Methods

showsPrec :: Int -> Fragment stage -> ShowS #

show :: Fragment stage -> String #

showList :: [Fragment stage] -> ShowS #

Eq (Fragment stage) Source # 
Instance details

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

Methods

(==) :: Fragment stage -> Fragment stage -> Bool #

(/=) :: Fragment stage -> Fragment stage -> Bool #

Hashable (Fragment stage) Source # 
Instance details

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

Methods

hashWithSalt :: Int -> Fragment stage -> Int #

hash :: Fragment stage -> Int #

Lift (Fragment stage :: Type) Source # 
Instance details

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

Methods

lift :: Quote m => Fragment stage -> m Exp #

liftTyped :: forall (m :: Type -> Type). Quote m => Fragment stage -> Code m (Fragment stage) #

type Rep (Fragment stage) Source # 
Instance details

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

type Rep (Fragment stage) = D1 ('MetaData "Fragment" "Data.Morpheus.Types.Internal.AST.Selection" "morpheus-graphql-core-0.27.3-7plQmdT9PxpJTKqPgX8pDL" 'False) (C1 ('MetaCons "Fragment" 'PrefixI 'True) ((S1 ('MetaSel ('Just "fragmentName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 FragmentName) :*: S1 ('MetaSel ('Just "fragmentType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 TypeName)) :*: (S1 ('MetaSel ('Just "fragmentPosition") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Position) :*: (S1 ('MetaSel ('Just "fragmentSelection") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (SelectionSet stage)) :*: S1 ('MetaSel ('Just "fragmentDirectives") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Directives stage))))))

data Operation (s :: Stage) Source #

Instances

Instances details
Show (Operation s) Source # 
Instance details

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

RenderGQL (Operation VALID) Source # 
Instance details

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

Methods

renderGQL :: Operation VALID -> Rendering Source #

SelectionTree (Operation VALID) Source # 
Instance details

Defined in Data.Morpheus.Types.SelectionTree

Associated Types

type ChildNode (Operation VALID) Source #

Lift (Operation s :: Type) Source # 
Instance details

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

Methods

lift :: Quote m => Operation s -> m Exp #

liftTyped :: forall (m :: Type -> Type). Quote m => Operation s -> Code m (Operation s) #

type ChildNode (Operation VALID) Source # 
Instance details

Defined in Data.Morpheus.Types.SelectionTree

data Variable (stage :: Stage) Source #

Constructors

Variable 

Instances

Instances details
NameCollision GQLError (Variable s) Source # 
Instance details

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

KeyOf FieldName (Variable s) Source # 
Instance details

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

Show (Variable stage) Source # 
Instance details

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

Methods

showsPrec :: Int -> Variable stage -> ShowS #

show :: Variable stage -> String #

showList :: [Variable stage] -> ShowS #

Eq (Variable stage) Source # 
Instance details

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

Methods

(==) :: Variable stage -> Variable stage -> Bool #

(/=) :: Variable stage -> Variable stage -> Bool #

Lift (Variable stage :: Type) Source # 
Instance details

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

Methods

lift :: Quote m => Variable stage -> m Exp #

liftTyped :: forall (m :: Type -> Type). Quote m => Variable stage -> Code m (Variable stage) #

newtype ArgumentDefinition s Source #

Constructors

ArgumentDefinition 

Instances

Instances details
NameCollision GQLError (ArgumentDefinition s) Source # 
Instance details

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

KeyOf FieldName (ArgumentDefinition s) Source # 
Instance details

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

Show (ArgumentDefinition s) Source # 
Instance details

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

Eq (ArgumentDefinition s) Source # 
Instance details

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

RenderGQL (ArgumentDefinition s) Source # 
Instance details

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

Methods

renderGQL :: ArgumentDefinition s -> Rendering Source #

RenderGQL (ArgumentsDefinition s) Source # 
Instance details

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

Methods

renderGQL :: ArgumentsDefinition s -> Rendering Source #

Lift (ArgumentDefinition s :: TYPE LiftedRep) Source # 
Instance details

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

Methods

lift :: Quote m => ArgumentDefinition s -> m Exp #

liftTyped :: forall (m :: Type -> Type). Quote m => ArgumentDefinition s -> Code m (ArgumentDefinition s) #

data FieldDefinition (cat :: TypeCategory) (s :: Stage) Source #

Instances

Instances details
ToCategory FieldDefinition a ANY Source # 
Instance details

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

Methods

toCategory :: forall (s :: Stage). FieldDefinition a s -> FieldDefinition ANY s Source #

NameCollision GQLError (FieldDefinition cat s) Source # 
Instance details

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

KeyOf FieldName (FieldDefinition cat s) Source # 
Instance details

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

Lift (FieldDefinition cat s :: Type) Source # 
Instance details

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

Methods

lift :: Quote m => FieldDefinition cat s -> m Exp #

liftTyped :: forall (m :: Type -> Type). Quote m => FieldDefinition cat s -> Code m (FieldDefinition cat s) #

Show (FieldDefinition cat s) Source # 
Instance details

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

Eq (FieldDefinition cat s) Source # 
Instance details

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

Methods

(==) :: FieldDefinition cat s -> FieldDefinition cat s -> Bool #

(/=) :: FieldDefinition cat s -> FieldDefinition cat s -> Bool #

RenderGQL (FieldDefinition cat s) Source # 
Instance details

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

Methods

renderGQL :: FieldDefinition cat s -> Rendering Source #

RenderGQL (FieldsDefinition cat s) Source # 
Instance details

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

Methods

renderGQL :: FieldsDefinition cat s -> Rendering Source #

type InputFieldsDefinition s = OrdMap FieldName (InputValueDefinition s) Source #

data TypeContent (b :: Bool) (a :: TypeCategory) (s :: Stage) where Source #

Constructors

DataScalar 

Fields

DataEnum 

Fields

DataInputObject 

Fields

DataInputUnion 

Fields

DataObject 

Fields

DataUnion 

Fields

DataInterface 

Fields

Instances

Instances details
Lift (TypeContent a b s :: Type) Source # 
Instance details

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

Methods

lift :: Quote m => TypeContent a b s -> m Exp #

liftTyped :: forall (m :: Type -> Type). Quote m => TypeContent a b s -> Code m (TypeContent a b s) #

FromCategory (TypeContent TRUE) ANY IMPLEMENTABLE Source # 
Instance details

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

FromCategory (TypeContent TRUE) ANY IN Source # 
Instance details

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

Methods

fromCategory :: forall (s :: Stage). TypeContent TRUE ANY s -> Maybe (TypeContent TRUE IN s) Source #

FromCategory (TypeContent TRUE) ANY OBJECT Source # 
Instance details

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

FromCategory (TypeContent TRUE) ANY OUT Source # 
Instance details

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

Methods

fromCategory :: forall (s :: Stage). TypeContent TRUE ANY s -> Maybe (TypeContent TRUE OUT s) Source #

ToCategory (TypeContent TRUE) INPUT_OBJECT IN Source # 
Instance details

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

ToCategory (TypeContent TRUE) OBJECT IMPLEMENTABLE Source # 
Instance details

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

ToCategory (TypeContent TRUE) a ANY Source # 
Instance details

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

Methods

toCategory :: forall (s :: Stage). TypeContent TRUE a s -> TypeContent TRUE ANY s Source #

Show (TypeContent a b s) Source # 
Instance details

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

Methods

showsPrec :: Int -> TypeContent a b s -> ShowS #

show :: TypeContent a b s -> String #

showList :: [TypeContent a b s] -> ShowS #

Eq (TypeContent a b s) Source # 
Instance details

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

Methods

(==) :: TypeContent a b s -> TypeContent a b s -> Bool #

(/=) :: TypeContent a b s -> TypeContent a b s -> Bool #

data TypeDefinition (a :: TypeCategory) (s :: Stage) Source #

Instances

Instances details
FromCategory (TypeContent TRUE) cat cat' => FromCategory TypeDefinition cat cat' Source # 
Instance details

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

Methods

fromCategory :: forall (s :: Stage). TypeDefinition cat s -> Maybe (TypeDefinition cat' s) Source #

ToCategory (TypeContent TRUE) cat cat' => ToCategory TypeDefinition cat cat' Source # 
Instance details

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

Methods

toCategory :: forall (s :: Stage). TypeDefinition cat s -> TypeDefinition cat' s Source #

NameCollision GQLError (TypeDefinition cat s) Source # 
Instance details

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

KeyOf TypeName (TypeDefinition a s) Source # 
Instance details

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

Lift (TypeDefinition a s :: Type) Source # 
Instance details

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

Methods

lift :: Quote m => TypeDefinition a s -> m Exp #

liftTyped :: forall (m :: Type -> Type). Quote m => TypeDefinition a s -> Code m (TypeDefinition a s) #

Show (TypeDefinition a s) Source # 
Instance details

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

Eq (TypeDefinition a s) Source # 
Instance details

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

Ord (TypeDefinition k s) Source # 
Instance details

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

RenderGQL (TypeDefinition a s) Source # 
Instance details

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

Methods

renderGQL :: TypeDefinition a s -> Rendering Source #

data Schema (s :: Stage) Source #

Instances

Instances details
(Monad m, MonadError GQLError m) => Merge m (Schema s) Source # 
Instance details

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

Methods

merge :: Schema s -> Schema s -> m (Schema s) Source #

Show (Schema s) Source # 
Instance details

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

Methods

showsPrec :: Int -> Schema s -> ShowS #

show :: Schema s -> String #

showList :: [Schema s] -> ShowS #

RenderGQL (Schema s) Source # 
Instance details

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

Methods

renderGQL :: Schema s -> Rendering Source #

Lift (Schema s :: Type) Source # 
Instance details

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

Methods

lift :: Quote m => Schema s -> m Exp #

liftTyped :: forall (m :: Type -> Type). Quote m => Schema s -> Code m (Schema s) #

data TypeRef Source #

Instances

Instances details
Show TypeRef Source # 
Instance details

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

Eq TypeRef Source # 
Instance details

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

Methods

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

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

RenderGQL TypeRef Source # 
Instance details

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

Methods

renderGQL :: TypeRef -> Rendering Source #

Msg TypeRef Source # 
Instance details

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

Methods

msg :: TypeRef -> GQLError Source #

Subtyping TypeRef Source # 
Instance details

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

Lift TypeRef Source # 
Instance details

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

Methods

lift :: Quote m => TypeRef -> m Exp #

liftTyped :: forall (m :: Type -> Type). Quote m => TypeRef -> Code m TypeRef #

data OperationType Source #

Instances

Instances details
Generic OperationType Source # 
Instance details

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

Associated Types

type Rep OperationType :: Type -> Type #

Show OperationType Source # 
Instance details

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

Eq OperationType Source # 
Instance details

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

Hashable OperationType Source # 
Instance details

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

RenderGQL OperationType Source # 
Instance details

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

Methods

renderGQL :: OperationType -> Rendering Source #

Msg OperationType Source # 
Instance details

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

KeyOf OperationType RootOperationTypeDefinition Source # 
Instance details

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

Lift OperationType Source # 
Instance details

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

Methods

lift :: Quote m => OperationType -> m Exp #

liftTyped :: forall (m :: Type -> Type). Quote m => OperationType -> Code m OperationType #

type Rep OperationType Source # 
Instance details

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

type Rep OperationType = D1 ('MetaData "OperationType" "Data.Morpheus.Types.Internal.AST.OperationType" "morpheus-graphql-core-0.27.3-7plQmdT9PxpJTKqPgX8pDL" 'False) (C1 ('MetaCons "OPERATION_QUERY" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "OPERATION_SUBSCRIPTION" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "OPERATION_MUTATION" 'PrefixI 'False) (U1 :: Type -> Type)))

data Directive (s :: Stage) Source #

Instances

Instances details
NameCollision GQLError (Directive s) Source # 
Instance details

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

KeyOf FieldName (Directive s) Source # 
Instance details

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

Generic (Directive s) Source # 
Instance details

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

Associated Types

type Rep (Directive s) :: Type -> Type #

Methods

from :: Directive s -> Rep (Directive s) x #

to :: Rep (Directive s) x -> Directive s #

Show (Directive s) Source # 
Instance details

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

Eq (Directive s) Source # 
Instance details

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

Methods

(==) :: Directive s -> Directive s -> Bool #

(/=) :: Directive s -> Directive s -> Bool #

Hashable (Directive s) Source # 
Instance details

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

Methods

hashWithSalt :: Int -> Directive s -> Int #

hash :: Directive s -> Int #

RenderGQL (Directive s) Source # 
Instance details

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

Methods

renderGQL :: Directive s -> Rendering Source #

RenderGQL (Directives s) Source # 
Instance details

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

Methods

renderGQL :: Directives s -> Rendering Source #

Lift (Directive s :: Type) Source # 
Instance details

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

Methods

lift :: Quote m => Directive s -> m Exp #

liftTyped :: forall (m :: Type -> Type). Quote m => Directive s -> Code m (Directive s) #

type Rep (Directive s) Source # 
Instance details

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

type Rep (Directive s) = D1 ('MetaData "Directive" "Data.Morpheus.Types.Internal.AST.Fields" "morpheus-graphql-core-0.27.3-7plQmdT9PxpJTKqPgX8pDL" 'False) (C1 ('MetaCons "Directive" 'PrefixI 'True) (S1 ('MetaSel ('Just "directivePosition") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Position) :*: (S1 ('MetaSel ('Just "directiveName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 FieldName) :*: S1 ('MetaSel ('Just "directiveArgs") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Arguments s)))))

toNullable :: Nullable a => a -> a Source #

isNullable :: Nullable a => a -> Bool Source #

class Subtyping t where Source #

Methods

isSubtype :: t -> t -> Bool Source #

Instances

Instances details
Subtyping TypeRef Source # 
Instance details

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

Subtyping TypeWrapper Source # 
Instance details

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

isResolverType :: Strictness t => t -> Bool Source #

lookupWith :: Eq k => (a -> k) -> k -> [a] -> Maybe a Source #

data OrdMap k a Source #

Instances

Instances details
(Eq k, Hashable k) => IsMap k (OrdMap k) Source # 
Instance details

Defined in Data.Mergeable.OrdMap

Methods

unsafeFromList :: [(k, a)] -> OrdMap k a Source #

singleton :: k -> a -> OrdMap k a Source #

lookup :: k -> OrdMap k a -> Maybe a Source #

member :: k -> OrdMap k a -> Bool Source #

toAssoc :: OrdMap k a -> [(k, a)] Source #

(NameCollision e a, Eq k, Hashable k, Monad m, MonadError e m) => Merge m (OrdMap k a) Source # 
Instance details

Defined in Data.Mergeable.OrdMap

Methods

merge :: OrdMap k a -> OrdMap k a -> m (OrdMap k a) Source #

(Lift a, Lift k, Eq k, Hashable k) => Lift (OrdMap k a :: Type) Source # 
Instance details

Defined in Data.Mergeable.OrdMap

Methods

lift :: Quote m => OrdMap k a -> m Exp #

liftTyped :: forall (m :: Type -> Type). Quote m => OrdMap k a -> Code m (OrdMap k a) #

(Eq k, Hashable k) => Foldable (OrdMap k) Source # 
Instance details

Defined in Data.Mergeable.OrdMap

Methods

fold :: Monoid m => OrdMap k m -> m #

foldMap :: Monoid m => (a -> m) -> OrdMap k a -> m #

foldMap' :: Monoid m => (a -> m) -> OrdMap k a -> m #

foldr :: (a -> b -> b) -> b -> OrdMap k a -> b #

foldr' :: (a -> b -> b) -> b -> OrdMap k a -> b #

foldl :: (b -> a -> b) -> b -> OrdMap k a -> b #

foldl' :: (b -> a -> b) -> b -> OrdMap k a -> b #

foldr1 :: (a -> a -> a) -> OrdMap k a -> a #

foldl1 :: (a -> a -> a) -> OrdMap k a -> a #

toList :: OrdMap k a -> [a] #

null :: OrdMap k a -> Bool #

length :: OrdMap k a -> Int #

elem :: Eq a => a -> OrdMap k a -> Bool #

maximum :: Ord a => OrdMap k a -> a #

minimum :: Ord a => OrdMap k a -> a #

sum :: Num a => OrdMap k a -> a #

product :: Num a => OrdMap k a -> a #

Hashable k => Traversable (OrdMap k) Source # 
Instance details

Defined in Data.Mergeable.OrdMap

Methods

traverse :: Applicative f => (a -> f b) -> OrdMap k a -> f (OrdMap k b) #

sequenceA :: Applicative f => OrdMap k (f a) -> f (OrdMap k a) #

mapM :: Monad m => (a -> m b) -> OrdMap k a -> m (OrdMap k b) #

sequence :: Monad m => OrdMap k (m a) -> m (OrdMap k a) #

Functor (OrdMap k) Source # 
Instance details

Defined in Data.Mergeable.OrdMap

Methods

fmap :: (a -> b) -> OrdMap k a -> OrdMap k b #

(<$) :: a -> OrdMap k b -> OrdMap k a #

RenderGQL (ArgumentsDefinition s) Source # 
Instance details

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

Methods

renderGQL :: ArgumentsDefinition s -> Rendering Source #

RenderGQL (Directives s) Source # 
Instance details

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

Methods

renderGQL :: Directives s -> Rendering Source #

Generic (OrdMap k a) Source # 
Instance details

Defined in Data.Mergeable.OrdMap

Associated Types

type Rep (OrdMap k a) :: Type -> Type #

Methods

from :: OrdMap k a -> Rep (OrdMap k a) x #

to :: Rep (OrdMap k a) x -> OrdMap k a #

(Show k, Show a) => Show (OrdMap k a) Source # 
Instance details

Defined in Data.Mergeable.OrdMap

Methods

showsPrec :: Int -> OrdMap k a -> ShowS #

show :: OrdMap k a -> String #

showList :: [OrdMap k a] -> ShowS #

(Eq k, Eq a) => Eq (OrdMap k a) Source # 
Instance details

Defined in Data.Mergeable.OrdMap

Methods

(==) :: OrdMap k a -> OrdMap k a -> Bool #

(/=) :: OrdMap k a -> OrdMap k a -> Bool #

(Hashable k, Hashable a) => Hashable (OrdMap k a) Source # 
Instance details

Defined in Data.Mergeable.OrdMap

Methods

hashWithSalt :: Int -> OrdMap k a -> Int #

hash :: OrdMap k a -> Int #

Empty (OrdMap k a) Source # 
Instance details

Defined in Data.Mergeable.OrdMap

Methods

empty :: OrdMap k a Source #

RenderGQL (FieldsDefinition cat s) Source # 
Instance details

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

Methods

renderGQL :: FieldsDefinition cat s -> Rendering Source #

type Rep (OrdMap k a) Source # 
Instance details

Defined in Data.Mergeable.OrdMap

type Rep (OrdMap k a) = D1 ('MetaData "OrdMap" "Data.Mergeable.OrdMap" "morpheus-graphql-core-0.27.3-7plQmdT9PxpJTKqPgX8pDL" 'False) (C1 ('MetaCons "OrdMap" 'PrefixI 'True) (S1 ('MetaSel ('Just "order") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [k]) :*: S1 ('MetaSel ('Just "entries") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (HashMap k a))))

data GQLError Source #

Instances

Instances details
FromJSON GQLError Source # 
Instance details

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

ToJSON GQLError Source # 
Instance details

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

IsString GQLError Source # 
Instance details

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

Semigroup GQLError Source # 
Instance details

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

Generic GQLError Source # 
Instance details

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

Associated Types

type Rep GQLError :: Type -> Type #

Methods

from :: GQLError -> Rep GQLError x #

to :: Rep GQLError x -> GQLError #

Show GQLError Source # 
Instance details

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

Eq GQLError Source # 
Instance details

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

Ord GQLError Source # 
Instance details

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

Msg GQLError Source # 
Instance details

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

NameCollision GQLError RootOperationTypeDefinition Source # 
Instance details

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

NameCollision GQLError SchemaDefinition Source # 
Instance details

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

NameCollision GQLError (Argument s) Source # 
Instance details

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

NameCollision GQLError (ArgumentDefinition s) Source # 
Instance details

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

NameCollision GQLError (Directive s) Source # 
Instance details

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

NameCollision GQLError (DirectiveDefinition s) Source # 
Instance details

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

NameCollision GQLError (Fragment s) Source # 
Instance details

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

NameCollision GQLError (ObjectEntry s) Source # 
Instance details

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

NameCollision GQLError (Variable s) Source # 
Instance details

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

NameCollision GQLError (FieldDefinition cat s) Source # 
Instance details

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

NameCollision GQLError (TypeDefinition cat s) Source # 
Instance details

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

NameCollision GQLError (UnionMember c s) Source # 
Instance details

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

Monad m => MonadError GQLError (ResultT event m) Source # 
Instance details

Defined in Data.Morpheus.Ext.Result

Methods

throwError :: GQLError -> ResultT event m a #

catchError :: ResultT event m a -> (GQLError -> ResultT event m a) -> ResultT event m a #

type Rep GQLError Source # 
Instance details

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

data ObjectEntry (s :: Stage) Source #

Constructors

ObjectEntry 

Instances

Instances details
NameCollision GQLError (ObjectEntry s) Source # 
Instance details

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

KeyOf FieldName (ObjectEntry s) Source # 
Instance details

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

Lift (ObjectEntry a :: Type) Source # 
Instance details

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

Methods

lift :: Quote m => ObjectEntry a -> m Exp #

liftTyped :: forall (m :: Type -> Type). Quote m => ObjectEntry a -> Code m (ObjectEntry a) #

Show (ObjectEntry s) Source # 
Instance details

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

Eq (ObjectEntry s) Source # 
Instance details

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

Hashable (ObjectEntry s) Source # 
Instance details

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

Methods

hashWithSalt :: Int -> ObjectEntry s -> Int #

hash :: ObjectEntry s -> Int #

RenderGQL (ObjectEntry a) Source # 
Instance details

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

Methods

renderGQL :: ObjectEntry a -> Rendering Source #

data UnionTag Source #

Instances

Instances details
Generic UnionTag Source # 
Instance details

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

Associated Types

type Rep UnionTag :: Type -> Type #

Methods

from :: UnionTag -> Rep UnionTag x #

to :: Rep UnionTag x -> UnionTag #

Show UnionTag Source # 
Instance details

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

Eq UnionTag Source # 
Instance details

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

Hashable UnionTag Source # 
Instance details

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

Methods

hashWithSalt :: Int -> UnionTag -> Int #

hash :: UnionTag -> Int #

RenderGQL UnionTag Source # 
Instance details

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

Methods

renderGQL :: UnionTag -> Rendering Source #

KeyOf TypeName UnionTag Source # 
Instance details

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

(Monad m, MonadError GQLError m) => Merge (HistoryT m) UnionTag Source # 
Instance details

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

Lift UnionTag Source # 
Instance details

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

Methods

lift :: Quote m => UnionTag -> m Exp #

liftTyped :: forall (m :: Type -> Type). Quote m => UnionTag -> Code m UnionTag #

type Rep UnionTag Source # 
Instance details

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

type Rep UnionTag = D1 ('MetaData "UnionTag" "Data.Morpheus.Types.Internal.AST.Selection" "morpheus-graphql-core-0.27.3-7plQmdT9PxpJTKqPgX8pDL" 'False) (C1 ('MetaCons "UnionTag" 'PrefixI 'True) (S1 ('MetaSel ('Just "unionTagName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 TypeName) :*: S1 ('MetaSel ('Just "unionTagSelection") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (SelectionSet VALID))))

type ANY = 'ANY Source #

type IN = 'IN Source #

type OUT = 'OUT Source #

type OBJECT = 'OBJECT Source #

type IMPLEMENTABLE = 'IMPLEMENTABLE Source #

fromAny :: FromCategory a ANY k => a ANY (s :: Stage) -> Maybe (a k s) Source #

toAny :: ToCategory a k ANY => a (k :: TypeCategory) (s :: Stage) -> a ANY s Source #

type TRUE = 'True Source #

type TypeName = Name 'TYPE Source #

class Msg a where Source #

Methods

msg :: a -> GQLError Source #

Instances

Instances details
Msg Value Source # 
Instance details

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

Methods

msg :: Value -> GQLError Source #

Msg ByteString Source # 
Instance details

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

Msg DirectiveLocation Source # 
Instance details

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

Msg GQLError Source # 
Instance details

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

Msg OperationType Source # 
Instance details

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

Msg TypeRef Source # 
Instance details

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

Methods

msg :: TypeRef -> GQLError Source #

Msg Text Source # 
Instance details

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

Methods

msg :: Text -> GQLError Source #

Msg String Source # 
Instance details

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

Methods

msg :: String -> GQLError Source #

Msg Int Source # 
Instance details

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

Methods

msg :: Int -> GQLError Source #

Msg (Name t) Source # 
Instance details

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

Methods

msg :: Name t -> GQLError Source #

Msg (Value a) Source # 
Instance details

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

Methods

msg :: Value a -> GQLError Source #

Msg (UnionMember cat s) Source # 
Instance details

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

Methods

msg :: UnionMember cat s -> GQLError Source #

intercalate :: Name t1 -> [Name t2] -> Name t3 Source #

data DirectiveDefinition s Source #

data DirectiveLocation Source #

data FieldContent (bool :: Bool) (cat :: TypeCategory) (s :: Stage) where Source #

Constructors

DefaultInputValue 

Fields

FieldArgs 

Fields

Instances

Instances details
Lift (FieldContent bool cat s :: Type) Source # 
Instance details

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

Methods

lift :: Quote m => FieldContent bool cat s -> m Exp #

liftTyped :: forall (m :: Type -> Type). Quote m => FieldContent bool cat s -> Code m (FieldContent bool cat s) #

ToCategory (FieldContent TRUE) a ANY Source # 
Instance details

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

Methods

toCategory :: forall (s :: Stage). FieldContent TRUE a s -> FieldContent TRUE ANY s Source #

Show (FieldContent bool cat s) Source # 
Instance details

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

Methods

showsPrec :: Int -> FieldContent bool cat s -> ShowS #

show :: FieldContent bool cat s -> String #

showList :: [FieldContent bool cat s] -> ShowS #

Eq (FieldContent bool cat s) Source # 
Instance details

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

Methods

(==) :: FieldContent bool cat s -> FieldContent bool cat s -> Bool #

(/=) :: FieldContent bool cat s -> FieldContent bool cat s -> Bool #

data UnionMember (cat :: TypeCategory) (s :: Stage) Source #

Constructors

UnionMember 

Instances

Instances details
NameCollision GQLError (UnionMember c s) Source # 
Instance details

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

KeyOf TypeName (UnionMember cat s) Source # 
Instance details

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

Methods

keyOf :: UnionMember cat s -> TypeName Source #

Lift (UnionMember cat s :: Type) Source # 
Instance details

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

Methods

lift :: Quote m => UnionMember cat s -> m Exp #

liftTyped :: forall (m :: Type -> Type). Quote m => UnionMember cat s -> Code m (UnionMember cat s) #

Show (UnionMember cat s) Source # 
Instance details

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

Methods

showsPrec :: Int -> UnionMember cat s -> ShowS #

show :: UnionMember cat s -> String #

showList :: [UnionMember cat s] -> ShowS #

Eq (UnionMember cat s) Source # 
Instance details

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

Methods

(==) :: UnionMember cat s -> UnionMember cat s -> Bool #

(/=) :: UnionMember cat s -> UnionMember cat s -> Bool #

RenderGQL (UnionMember cat s) Source # 
Instance details

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

Methods

renderGQL :: UnionMember cat s -> Rendering Source #

Msg (UnionMember cat s) Source # 
Instance details

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

Methods

msg :: UnionMember cat s -> GQLError Source #

type UnionSelection (s :: Stage) = MergeMap (ALLOW_DUPLICATES s) TypeName UnionTag Source #

newtype Typed (cat :: TypeCategory) (s :: Stage) a Source #

used for preserving type information from untyped values see function typed

Constructors

Typed a 

typed :: (a c s -> b) -> a c s -> Typed c s b Source #

untyped :: (a -> b) -> Typed c s a -> b Source #

type LEAF = 'LEAF Source #

type INPUT_OBJECT = 'INPUT_OBJECT Source #

class ToCategory a (k :: TypeCategory) (k' :: TypeCategory) where Source #

Methods

toCategory :: a k (s :: Stage) -> a k' s Source #

type (<=!) (a :: TypeCategory) (b :: TypeCategory) = (a <=? b) ~ TRUE Source #

type family ToOBJECT (s :: TypeCategory) :: TypeCategory where ... Source #

constraintInputUnion :: forall stage schemaStage. UnionTypeDefinition IN schemaStage -> Object stage -> Either GQLError (UnionMember IN schemaStage, Value stage) Source #

getInputUnionValue :: forall stage. Object stage -> Either GQLError (TypeName, Value stage) Source #

packName :: NamePacking a => a -> Name t Source #

unpackName :: NamePacking a => Name t -> a Source #

type FragmentName = Name 'FRAGMENT Source #

data Name (t :: NAME) Source #

Instances

Instances details
KeyOf TypeName UnionTag Source # 
Instance details

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

KeyOf TypeName SchemaDefinition Source # 
Instance details

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

KeyOf FieldName (Argument stage) Source # 
Instance details

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

Methods

keyOf :: Argument stage -> FieldName Source #

KeyOf FieldName (ArgumentDefinition s) Source # 
Instance details

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

KeyOf FieldName (Directive s) Source # 
Instance details

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

KeyOf FieldName (DirectiveDefinition s) Source # 
Instance details

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

KeyOf FieldName (Selection s) Source # 
Instance details

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

KeyOf FieldName (ObjectEntry s) Source # 
Instance details

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

KeyOf FieldName (Variable s) Source # 
Instance details

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

KeyOf FragmentName (Fragment s) Source # 
Instance details

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

Lift (Name t :: TYPE LiftedRep) Source # 
Instance details

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

Methods

lift :: Quote m => Name t -> m Exp #

liftTyped :: forall (m :: Type -> Type). Quote m => Name t -> Code m (Name t) #

KeyOf FieldName (FieldDefinition cat s) Source # 
Instance details

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

KeyOf TypeName (TypeDefinition a s) Source # 
Instance details

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

KeyOf TypeName (UnionMember cat s) Source # 
Instance details

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

Methods

keyOf :: UnionMember cat s -> TypeName Source #

FromJSON (Name t) Source # 
Instance details

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

ToJSON (Name t) Source # 
Instance details

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

IsString (Name t) Source # 
Instance details

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

Methods

fromString :: String -> Name t #

Semigroup (Name t) Source # 
Instance details

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

Methods

(<>) :: Name t -> Name t -> Name t #

sconcat :: NonEmpty (Name t) -> Name t #

stimes :: Integral b => b -> Name t -> Name t #

Generic (Name t) Source # 
Instance details

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

Associated Types

type Rep (Name t) :: Type -> Type #

Methods

from :: Name t -> Rep (Name t) x #

to :: Rep (Name t) x -> Name t #

Show (Name t) Source # 
Instance details

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

Methods

showsPrec :: Int -> Name t -> ShowS #

show :: Name t -> String #

showList :: [Name t] -> ShowS #

Eq (Name t) Source # 
Instance details

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

Methods

(==) :: Name t -> Name t -> Bool #

(/=) :: Name t -> Name t -> Bool #

Ord (Name t) Source # 
Instance details

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

Methods

compare :: Name t -> Name t -> Ordering #

(<) :: Name t -> Name t -> Bool #

(<=) :: Name t -> Name t -> Bool #

(>) :: Name t -> Name t -> Bool #

(>=) :: Name t -> Name t -> Bool #

max :: Name t -> Name t -> Name t #

min :: Name t -> Name t -> Name t #

Hashable (Name t) Source # 
Instance details

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

Methods

hashWithSalt :: Int -> Name t -> Int #

hash :: Name t -> Int #

RenderGQL (ArgumentsDefinition s) Source # 
Instance details

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

Methods

renderGQL :: ArgumentsDefinition s -> Rendering Source #

RenderGQL (Directives s) Source # 
Instance details

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

Methods

renderGQL :: Directives s -> Rendering Source #

RenderGQL (Name a) Source # 
Instance details

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

Methods

renderGQL :: Name a -> Rendering Source #

Msg (Name t) Source # 
Instance details

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

Methods

msg :: Name t -> GQLError Source #

ToString (Name t) Source # 
Instance details

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

Methods

toString :: Name t -> String #

(Monad m, MonadError GQLError m) => Merge (HistoryT m) UnionTag Source # 
Instance details

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

(Monad m, MonadError GQLError m, Merge (HistoryT m) (SelectionSet s)) => Merge (HistoryT m) (Selection s) Source # 
Instance details

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

Methods

merge :: Selection s -> Selection s -> HistoryT m (Selection s) Source #

(Monad m, MonadError GQLError m, Merge (HistoryT m) (SelectionSet s)) => Merge (HistoryT m) (SelectionContent s) Source # 
Instance details

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

RenderGQL (FieldsDefinition cat s) Source # 
Instance details

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

Methods

renderGQL :: FieldsDefinition cat s -> Rendering Source #

type Rep (Name t) Source # 
Instance details

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

type Rep (Name t) = D1 ('MetaData "Name" "Data.Morpheus.Types.Internal.AST.Name" "morpheus-graphql-core-0.27.3-7plQmdT9PxpJTKqPgX8pDL" 'True) (C1 ('MetaCons "Name" 'PrefixI 'True) (S1 ('MetaSel ('Just "_unpackName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text)))

data PropName Source #

Constructors

PropIndex Int 
PropName Text 

Instances

Instances details
FromJSON PropName Source # 
Instance details

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

ToJSON PropName Source # 
Instance details

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

IsString PropName Source # 
Instance details

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

Generic PropName Source # 
Instance details

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

Associated Types

type Rep PropName :: Type -> Type #

Methods

from :: PropName -> Rep PropName x #

to :: Rep PropName x -> PropName #

Show PropName Source # 
Instance details

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

Eq PropName Source # 
Instance details

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

type Rep PropName Source # 
Instance details

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

type Rep PropName = D1 ('MetaData "PropName" "Data.Morpheus.Types.Internal.AST.Error" "morpheus-graphql-core-0.27.3-7plQmdT9PxpJTKqPgX8pDL" 'False) (C1 ('MetaCons "PropIndex" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int)) :+: C1 ('MetaCons "PropName" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text)))