morpheus-graphql-0.11.0: Morpheus GraphQL

Safe HaskellNone
LanguageHaskell2010

Data.Morpheus.Types.Internal.AST

Synopsis

Documentation

type Key = Text 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
Eq Position Source # 
Instance details

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

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.11.0-DUiAk47SKcjJSZXaGm9hvY" 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 #

type RESOLVED = RESOLVED Source #

type VALID = VALID Source #

type RAW = RAW Source #

data Value (stage :: Stage) where Source #

Constructors

ResolvedVariable :: Ref -> Variable VALID -> Value RESOLVED 
VariableValue :: Ref -> Value RAW 
Object :: Object stage -> Value stage 
List :: [Value stage] -> Value stage 
Enum :: Name -> Value stage 
Scalar :: ScalarValue -> Value stage 
Null :: Value stage 
Instances
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 #

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 #

Lift (Value a) Source # 
Instance details

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

Methods

lift :: Value a -> Q Exp #

ToJSON (Value a) Source # 
Instance details

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

FromJSON (Value a) Source # 
Instance details

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

GQLValue (Value a) 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
Eq ScalarValue Source # 
Instance details

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

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 Named a = (Name, a) Source #

splitDuplicates :: Eq a => [a] -> ([a], [a]) Source #

removeDuplicates :: Eq a => [a] -> [a] Source #

data Argument (valid :: Stage) Source #

Constructors

Argument 
Instances
Eq (Argument valid) Source # 
Instance details

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

Methods

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

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

Show (Argument valid) Source # 
Instance details

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

Methods

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

show :: Argument valid -> String #

showList :: [Argument valid] -> ShowS #

Lift (Argument valid) Source # 
Instance details

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

Methods

lift :: Argument valid -> Q Exp #

type SelectionSet s = MergeSet (Selection s) Source #

data Selection (s :: Stage) where Source #

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

Show (Selection a) Source # 
Instance details

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

Lift (Selection a) Source # 
Instance details

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

Methods

lift :: Selection a -> Q Exp #

data Variable (stage :: Stage) Source #

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

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 #

Lift (Variable stage) Source # 
Instance details

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

Methods

lift :: Variable stage -> Q Exp #

data TypeRef Source #

Instances
Eq TypeRef Source # 
Instance details

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

Methods

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

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

Show TypeRef Source # 
Instance details

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

Lift TypeRef Source # 
Instance details

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

Methods

lift :: TypeRef -> Q Exp #

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 #

type TypeUpdater = LibUpdater Schema 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 
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 #

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

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 #

data OrderedMap a Source #

Instances
Functor OrderedMap Source # 
Instance details

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

Methods

fmap :: (a -> b) -> OrderedMap a -> OrderedMap b #

(<$) :: a -> OrderedMap b -> OrderedMap a #

Foldable OrderedMap Source # 
Instance details

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

Methods

fold :: Monoid m => OrderedMap m -> m #

foldMap :: Monoid m => (a -> m) -> OrderedMap a -> m #

foldr :: (a -> b -> b) -> b -> OrderedMap a -> b #

foldr' :: (a -> b -> b) -> b -> OrderedMap a -> b #

foldl :: (b -> a -> b) -> b -> OrderedMap a -> b #

foldl' :: (b -> a -> b) -> b -> OrderedMap a -> b #

foldr1 :: (a -> a -> a) -> OrderedMap a -> a #

foldl1 :: (a -> a -> a) -> OrderedMap a -> a #

toList :: OrderedMap a -> [a] #

null :: OrderedMap a -> Bool #

length :: OrderedMap a -> Int #

elem :: Eq a => a -> OrderedMap a -> Bool #

maximum :: Ord a => OrderedMap a -> a #

minimum :: Ord a => OrderedMap a -> a #

sum :: Num a => OrderedMap a -> a #

product :: Num a => OrderedMap a -> a #

Traversable OrderedMap Source # 
Instance details

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

Methods

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

sequenceA :: Applicative f => OrderedMap (f a) -> f (OrderedMap a) #

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

sequence :: Monad m => OrderedMap (m a) -> m (OrderedMap a) #

Eq a => Eq (OrderedMap a) Source # 
Instance details

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

Methods

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

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

Show a => Show (OrderedMap a) Source # 
Instance details

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

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

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

Methods

lift :: OrderedMap a -> Q Exp #

data GQLError Source #

Constructors

GQLError 
Instances
Show GQLError Source # 
Instance details

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

Generic GQLError Source # 
Instance details

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

Associated Types

type Rep GQLError :: Type -> Type #

Methods

from :: GQLError -> Rep GQLError x #

to :: Rep GQLError x -> GQLError #

ToJSON GQLError Source # 
Instance details

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

FromJSON GQLError Source # 
Instance details

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

type Rep GQLError Source # 
Instance details

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

type Rep GQLError = D1 (MetaData "GQLError" "Data.Morpheus.Types.Internal.AST.Base" "morpheus-graphql-0.11.0-DUiAk47SKcjJSZXaGm9hvY" False) (C1 (MetaCons "GQLError" PrefixI True) (S1 (MetaSel (Just "message") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Message) :*: S1 (MetaSel (Just "locations") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 [Position])))

data ObjectEntry (s :: Stage) Source #

Constructors

ObjectEntry 

Fields

Instances
Eq (ObjectEntry s) Source # 
Instance details

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

Show (ObjectEntry s) Source # 
Instance details

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

Lift (ObjectEntry a) Source # 
Instance details

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

Methods

lift :: ObjectEntry a -> Q Exp #