Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- data Ref = Ref {}
- data Position = Position {}
- data Message
- anonymousRef :: FieldName -> Ref
- newtype FieldName = FieldName {}
- type Description = Text
- data Stage
- type RESOLVED = RESOLVED
- type VALID = VALID
- type RAW = RAW
- data VALIDATION_MODE
- data Value (stage :: Stage) where
- data ScalarValue
- type Object a = OrderedMap FieldName (ObjectEntry a)
- class GQLValue a where
- gqlNull :: a
- gqlScalar :: ScalarValue -> a
- gqlBoolean :: Bool -> a
- gqlString :: Text -> a
- gqlList :: [a] -> a
- gqlObject :: [(FieldName, a)] -> a
- replaceValue :: Value -> Value a
- decodeScientific :: Scientific -> ScalarValue
- convertToJSONName :: FieldName -> FieldName
- convertToHaskellName :: FieldName -> FieldName
- type RawValue = Value RAW
- type ValidValue = Value VALID
- type RawObject = Object RAW
- type ValidObject = Object VALID
- type ResolvedObject = Object RESOLVED
- type ResolvedValue = Value RESOLVED
- splitDuplicates :: Eq a => [a] -> ([a], [a])
- removeDuplicates :: Eq a => [a] -> [a]
- data Argument (valid :: Stage) = Argument {
- argumentName :: FieldName
- argumentValue :: Value valid
- argumentPosition :: Position
- type Arguments s = OrderedMap FieldName (Argument s)
- type SelectionSet (s :: Stage) = MergeSet s (Selection s)
- data SelectionContent (s :: Stage) where
- SelectionField :: SelectionContent s
- SelectionSet :: SelectionSet s -> SelectionContent s
- UnionSelection :: UnionSelection VALID -> SelectionContent VALID
- data Selection (s :: Stage) where
- type Fragments = OrderedMap FieldName Fragment
- data Fragment = Fragment {}
- data Operation (s :: Stage) = Operation {}
- data Variable (stage :: Stage) = Variable {
- variableName :: FieldName
- variableType :: TypeRef
- variablePosition :: Position
- variableValue :: VariableContent (VAR stage)
- type VariableDefinitions s = OrderedMap FieldName (Variable s)
- type DefaultValue = Maybe ResolvedValue
- getOperationName :: Maybe FieldName -> TypeName
- getOperationDataType :: Failure GQLErrors m => Operation a -> Schema -> m (TypeDefinition OUT)
- newtype ScalarDefinition = ScalarDefinition {}
- type DataEnum = [DataEnumValue]
- type FieldsDefinition cat = Fields (FieldDefinition cat)
- type ArgumentDefinition = FieldDefinition IN
- type DataUnion = [UnionMember OUT]
- data ArgumentsDefinition = ArgumentsDefinition {}
- data FieldDefinition (cat :: TypeCategory) = FieldDefinition {
- fieldName :: FieldName
- fieldDescription :: Maybe Description
- fieldType :: TypeRef
- fieldContent :: Maybe (FieldContent TRUE cat)
- fieldDirectives :: [Directive VALID]
- type InputFieldsDefinition = Fields InputValueDefinition
- data TypeContent (b :: Bool) (a :: TypeCategory) where
- DataScalar :: {..} -> TypeContent TRUE a
- DataEnum :: {..} -> TypeContent TRUE a
- DataInputObject :: {..} -> TypeContent (IsSelected a IN) a
- DataInputUnion :: {..} -> TypeContent (IsSelected a IN) a
- DataObject :: {..} -> TypeContent (IsSelected a OUT) a
- DataUnion :: {..} -> TypeContent (IsSelected a OUT) a
- DataInterface :: {..} -> TypeContent (IsSelected a OUT) a
- data TypeDefinition (a :: TypeCategory) = TypeDefinition {}
- data Schema = Schema {
- types :: TypeLib
- query :: TypeDefinition Out
- mutation :: Maybe (TypeDefinition Out)
- subscription :: Maybe (TypeDefinition Out)
- data DataTypeWrapper
- data TypeKind
- data DataFingerprint = DataFingerprint TypeName [String]
- data TypeWrapper
- data TypeRef = TypeRef {}
- data DataEnumValue = DataEnumValue {}
- data OperationType
- type QUERY = Query
- type MUTATION = Mutation
- type SUBSCRIPTION = Subscription
- data Directive (s :: Stage) = Directive {}
- type TypeUpdater = LibUpdater Schema
- data ConsD cat = ConsD {
- cName :: TypeName
- cFields :: [FieldDefinition cat]
- data TypeCategory
- type DataInputUnion = [UnionMember IN]
- data VariableContent (stage :: Stage) where
- DefaultValue :: Maybe ResolvedValue -> VariableContent RESOLVED
- ValidVariableValue :: {..} -> VariableContent VALID
- type TypeLib = HashMap TypeName (TypeDefinition ANY)
- initTypeLib :: TypeDefinition Out -> Schema
- defineType :: TypeDefinition cat -> Schema -> Schema
- isFieldNullable :: FieldDefinition cat -> Bool
- kindOf :: TypeDefinition a -> TypeKind
- toNullableField :: FieldDefinition cat -> FieldDefinition cat
- toListField :: FieldDefinition cat -> FieldDefinition cat
- isObject :: TypeKind -> Bool
- isInput :: TypeKind -> Bool
- toHSWrappers :: [DataTypeWrapper] -> [TypeWrapper]
- isNullable :: TypeRef -> Bool
- toGQLWrapper :: [TypeWrapper] -> [DataTypeWrapper]
- isWeaker :: [TypeWrapper] -> [TypeWrapper] -> Bool
- isSubscription :: TypeKind -> Bool
- isOutputObject :: TypeKind -> Bool
- sysTypes :: [TypeName]
- isSystemTypeName :: TypeName -> Bool
- isEntNode :: TypeContent TRUE a -> Bool
- createField :: Maybe (FieldContent TRUE cat) -> FieldName -> ([TypeWrapper], TypeName) -> FieldDefinition cat
- createArgument :: FieldName -> ([TypeWrapper], TypeName) -> FieldDefinition IN
- createEnumType :: TypeName -> [TypeName] -> TypeDefinition a
- createScalarType :: TypeName -> TypeDefinition a
- createType :: TypeName -> TypeContent TRUE a -> TypeDefinition a
- createUnionType :: TypeName -> [TypeName] -> TypeDefinition OUT
- createAlias :: TypeName -> TypeRef
- createInputUnionFields :: TypeName -> [UnionMember IN] -> [FieldDefinition IN]
- fieldVisibility :: FieldDefinition cat -> Bool
- createEnumValue :: TypeName -> DataEnumValue
- insertType :: TypeDefinition ANY -> TypeUpdater
- lookupDeprecated :: [Directive VALID] -> Maybe (Directive VALID)
- lookupDeprecatedReason :: Directive VALID -> Maybe Description
- lookupWith :: Eq k => (a -> k) -> k -> [a] -> Maybe a
- hsTypeName :: TypeName -> TypeName
- data GQLQuery = GQLQuery {
- fragments :: Fragments
- operation :: Operation RAW
- inputVariables :: [(FieldName, ResolvedValue)]
- type Variables = HashMap FieldName ResolvedValue
- isNullableWrapper :: [TypeWrapper] -> Bool
- unsafeFromFields :: [FieldDefinition cat] -> FieldsDefinition cat
- data OrderedMap k a
- data GQLError = GQLError {}
- type GQLErrors = [GQLError]
- data ObjectEntry (s :: Stage) = ObjectEntry {
- entryName :: FieldName
- entryValue :: Value s
- data UnionTag = UnionTag {}
- __inputname :: FieldName
- updateSchema :: TypeName -> DataFingerprint -> [TypeUpdater] -> (a -> TypeDefinition cat) -> a -> TypeUpdater
- internalFingerprint :: TypeName -> [String] -> DataFingerprint
- type ANY = Any
- type IN = In
- type OUT = Out
- class FromAny a (k :: TypeCategory) where
- class ToAny a where
- toAny :: a (k :: TypeCategory) -> a ANY
- type TRUE = True
- type FALSE = False
- newtype TypeName = TypeName {
- readTypeName :: Text
- type Token = Text
- class Msg a where
- intercalateName :: FieldName -> [FieldName] -> FieldName
- toFieldName :: TypeName -> FieldName
- data TypeNameRef = TypeNameRef {}
- isEnum :: [ConsD cat] -> Bool
- newtype Fields def = Fields {
- unFields :: OrderedMap FieldName def
- fieldsToArguments :: FieldsDefinition IN -> ArgumentsDefinition
- mkCons :: TypeName -> FieldsDefinition cat -> ConsD cat
- mkConsEnum :: DataEnumValue -> ConsD cat
- type Directives s = [Directive s]
- type DirectiveDefinitions = [DirectiveDefinition]
- data DirectiveDefinition = DirectiveDefinition {}
- data DirectiveLocation
- data FieldContent (bool :: Bool) (cat :: TypeCategory) where
- DefaultInputValue :: {..} -> FieldContent (IsSelected cat IN) cat
- FieldArgs :: {..} -> FieldContent (IsSelected cat OUT) cat
- fieldContentArgs :: FieldContent b cat -> OrderedMap FieldName ArgumentDefinition
- mkField :: FieldName -> ([TypeWrapper], TypeName) -> FieldDefinition cat
- data TypeNameTH = TypeNameTH {}
- isOutput :: TypeKind -> Bool
- mkObjectField :: ArgumentsDefinition -> FieldName -> ([TypeWrapper], TypeName) -> FieldDefinition OUT
- data UnionMember (cat :: TypeCategory) = UnionMember {
- memberName :: TypeName
- visibility :: Bool
- mkUnionMember :: TypeName -> UnionMember cat
Documentation
Ref | |
|
Instances
Eq Position Source # | |
Show Position Source # | |
Generic Position Source # | |
Lift Position Source # | |
ToJSON Position Source # | |
Defined in Data.Morpheus.Types.Internal.AST.Base | |
FromJSON Position Source # | |
type Rep Position Source # | |
Defined in Data.Morpheus.Types.Internal.AST.Base type Rep Position = D1 (MetaData "Position" "Data.Morpheus.Types.Internal.AST.Base" "morpheus-graphql-core-0.13.0-IGzDRUCgSIfHvjDJvh89n4" False) (C1 (MetaCons "Position" PrefixI True) (S1 (MetaSel (Just "line") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Int) :*: S1 (MetaSel (Just "column") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Int))) |
Instances
Eq Message Source # | |
Ord Message Source # | |
Defined in Data.Morpheus.Types.Internal.AST.Base | |
Show Message Source # | |
IsString Message Source # | |
Defined in Data.Morpheus.Types.Internal.AST.Base fromString :: String -> Message # | |
Generic Message Source # | |
Semigroup Message Source # | |
Lift Message Source # | |
Hashable Message Source # | |
Defined in Data.Morpheus.Types.Internal.AST.Base | |
ToJSON Message Source # | |
Defined in Data.Morpheus.Types.Internal.AST.Base | |
FromJSON Message Source # | |
Failure Message (Result e) Source # | |
Applicative m => Failure Message (ResultT event m) Source # | |
(LiftOperation o, Monad m) => Failure Message (Resolver o e m) Source # | |
type Rep Message Source # | |
Defined in Data.Morpheus.Types.Internal.AST.Base |
anonymousRef :: FieldName -> Ref Source #
Instances
Eq FieldName Source # | |
Ord FieldName Source # | |
Defined in Data.Morpheus.Types.Internal.AST.Base | |
Show FieldName Source # | |
IsString FieldName Source # | |
Defined in Data.Morpheus.Types.Internal.AST.Base fromString :: String -> FieldName # | |
Generic FieldName Source # | |
Semigroup FieldName Source # | |
Lift FieldName Source # | |
Hashable FieldName Source # | |
Defined in Data.Morpheus.Types.Internal.AST.Base | |
ToJSON FieldName Source # | |
Defined in Data.Morpheus.Types.Internal.AST.Base | |
FromJSON FieldName Source # | |
RenderGQL FieldName Source # | |
Defined in Data.Morpheus.Types.Internal.AST.Base | |
Msg FieldName Source # | |
type Rep FieldName Source # | |
Defined in Data.Morpheus.Types.Internal.AST.Base |
type Description = Text Source #
data VALIDATION_MODE Source #
Instances
Eq VALIDATION_MODE Source # | |
Defined in Data.Morpheus.Types.Internal.AST.Base (==) :: VALIDATION_MODE -> VALIDATION_MODE -> Bool # (/=) :: VALIDATION_MODE -> VALIDATION_MODE -> Bool # | |
Show VALIDATION_MODE Source # | |
Defined in Data.Morpheus.Types.Internal.AST.Base showsPrec :: Int -> VALIDATION_MODE -> ShowS # show :: VALIDATION_MODE -> String # showList :: [VALIDATION_MODE] -> ShowS # |
data Value (stage :: Stage) where Source #
ResolvedVariable :: Ref -> Variable VALID -> Value RESOLVED | |
VariableValue :: Ref -> Value RAW | |
Object :: Object stage -> Value stage | |
List :: [Value stage] -> Value stage | |
Enum :: TypeName -> Value stage | |
Scalar :: ScalarValue -> Value stage | |
Null :: Value stage |
Instances
Eq (Value s) Source # | |
Show (Value a) Source # | |
Lift (Value a) Source # | |
ToJSON (Value a) Source # | |
Defined in Data.Morpheus.Types.Internal.AST.Value | |
FromJSON (Value a) Source # | |
RenderGQL (Value a) Source # | |
Defined in Data.Morpheus.Types.Internal.AST.Value | |
Msg (Value a) Source # | |
GQLValue (Value a) Source # | |
data ScalarValue Source #
Primitive Values for GQLScalar: ScalarValue
, ScalarValue
, ScalarValue
, Boolean
.
for performance reason type Text
represents GraphQl ScalarValue
value
Instances
type Object a = OrderedMap FieldName (ObjectEntry a) Source #
class GQLValue a where Source #
gqlScalar :: ScalarValue -> a Source #
gqlBoolean :: Bool -> a Source #
replaceValue :: Value -> Value a Source #
type ValidValue = Value VALID Source #
type ValidObject = Object VALID Source #
type ResolvedObject = Object RESOLVED Source #
type ResolvedValue = Value RESOLVED Source #
splitDuplicates :: Eq a => [a] -> ([a], [a]) Source #
removeDuplicates :: Eq a => [a] -> [a] Source #
data Argument (valid :: Stage) Source #
Argument | |
|
type SelectionSet (s :: Stage) = MergeSet s (Selection s) Source #
data SelectionContent (s :: Stage) where Source #
SelectionField :: SelectionContent s | |
SelectionSet :: SelectionSet s -> SelectionContent s | |
UnionSelection :: UnionSelection VALID -> SelectionContent VALID |
Instances
Eq (SelectionContent a) Source # | |
Defined in Data.Morpheus.Types.Internal.AST.Selection (==) :: SelectionContent a -> SelectionContent a -> Bool # (/=) :: SelectionContent a -> SelectionContent a -> Bool # | |
Show (SelectionContent a) Source # | |
Defined in Data.Morpheus.Types.Internal.AST.Selection showsPrec :: Int -> SelectionContent a -> ShowS # show :: SelectionContent a -> String # showList :: [SelectionContent a] -> ShowS # | |
Lift (SelectionContent a) Source # | |
Defined in Data.Morpheus.Types.Internal.AST.Selection lift :: SelectionContent a -> Q Exp # | |
Merge (SelectionSet s) => Merge (SelectionContent s) Source # | |
Defined in Data.Morpheus.Types.Internal.AST.Selection merge :: (Monad m, Failure GQLErrors m) => [Ref] -> SelectionContent s -> SelectionContent s -> m (SelectionContent s) Source # |
data Selection (s :: Stage) where Source #
Selection | |
| |
InlineFragment :: Fragment -> Selection RAW | |
Spread :: Directives RAW -> Ref -> Selection RAW |
Instances
Eq (Selection a) Source # | |
Show (Selection a) Source # | |
Lift (Selection a) Source # | |
Merge (SelectionSet a) => Merge (Selection a) Source # | |
KeyOf (Selection s) Source # | |
SelectionTree (Selection VALID) Source # | |
type KEY (Selection s) Source # | |
Defined in Data.Morpheus.Types.Internal.AST.Selection |
data Variable (stage :: Stage) Source #
Variable | |
|
type VariableDefinitions s = OrderedMap FieldName (Variable s) Source #
type DefaultValue = Maybe ResolvedValue Source #
getOperationDataType :: Failure GQLErrors m => Operation a -> Schema -> m (TypeDefinition OUT) Source #
newtype ScalarDefinition Source #
Instances
Show ScalarDefinition Source # | |
Defined in Data.Morpheus.Types.Internal.AST.TypeSystem showsPrec :: Int -> ScalarDefinition -> ShowS # show :: ScalarDefinition -> String # showList :: [ScalarDefinition] -> ShowS # | |
Lift ScalarDefinition Source # | |
Defined in Data.Morpheus.Types.Internal.AST.TypeSystem lift :: ScalarDefinition -> Q Exp # |
type DataEnum = [DataEnumValue] Source #
type FieldsDefinition cat = Fields (FieldDefinition cat) Source #
type ArgumentDefinition = FieldDefinition IN Source #
type DataUnion = [UnionMember OUT] Source #
data ArgumentsDefinition Source #
Instances
data FieldDefinition (cat :: TypeCategory) Source #
FieldDefinition | |
|
Instances
type InputFieldsDefinition = Fields InputValueDefinition Source #
data TypeContent (b :: Bool) (a :: TypeCategory) where Source #
DataScalar | |
| |
DataEnum | |
| |
DataInputObject | |
| |
DataInputUnion | |
| |
DataObject | |
| |
DataUnion | |
| |
DataInterface | |
|
Instances
ToAny (TypeContent TRUE) Source # | |
Defined in Data.Morpheus.Types.Internal.AST.TypeSystem toAny :: TypeContent TRUE k -> TypeContent TRUE ANY Source # | |
FromAny (TypeContent TRUE) OUT Source # | |
Defined in Data.Morpheus.Types.Internal.AST.TypeSystem fromAny :: TypeContent TRUE ANY -> Maybe (TypeContent TRUE OUT) Source # | |
FromAny (TypeContent TRUE) IN Source # | |
Defined in Data.Morpheus.Types.Internal.AST.TypeSystem fromAny :: TypeContent TRUE ANY -> Maybe (TypeContent TRUE IN) Source # | |
Show (TypeContent a b) Source # | |
Defined in Data.Morpheus.Types.Internal.AST.TypeSystem showsPrec :: Int -> TypeContent a b -> ShowS # show :: TypeContent a b -> String # showList :: [TypeContent a b] -> ShowS # | |
Lift (TypeContent a b) Source # | |
Defined in Data.Morpheus.Types.Internal.AST.TypeSystem lift :: TypeContent a b -> Q Exp # |
data TypeDefinition (a :: TypeCategory) Source #
Instances
Schema | |
|
Instances
Show Schema Source # | |
RenderGQL Schema Source # | |
Defined in Data.Morpheus.Types.Internal.AST.TypeSystem | |
Selectable Schema (TypeDefinition ANY) Source # | |
Defined in Data.Morpheus.Types.Internal.AST.TypeSystem selectOr :: d -> (TypeDefinition ANY -> d) -> KEY (TypeDefinition ANY) -> Schema -> d Source # | |
Listable (TypeDefinition ANY) Schema Source # | |
Defined in Data.Morpheus.Types.Internal.AST.TypeSystem |
data DataTypeWrapper Source #
Instances
Show DataTypeWrapper Source # | |
Defined in Data.Morpheus.Types.Internal.AST.Base showsPrec :: Int -> DataTypeWrapper -> ShowS # show :: DataTypeWrapper -> String # showList :: [DataTypeWrapper] -> ShowS # | |
Lift DataTypeWrapper Source # | |
Defined in Data.Morpheus.Types.Internal.AST.Base lift :: DataTypeWrapper -> Q Exp # |
KindScalar | |
KindObject (Maybe OperationType) | |
KindUnion | |
KindEnum | |
KindInputObject | |
KindList | |
KindNonNull | |
KindInputUnion | |
KindInterface |
data DataFingerprint Source #
Instances
Eq DataFingerprint Source # | |
Defined in Data.Morpheus.Types.Internal.AST.Base (==) :: DataFingerprint -> DataFingerprint -> Bool # (/=) :: DataFingerprint -> DataFingerprint -> Bool # | |
Ord DataFingerprint Source # | |
Defined in Data.Morpheus.Types.Internal.AST.Base compare :: DataFingerprint -> DataFingerprint -> Ordering # (<) :: DataFingerprint -> DataFingerprint -> Bool # (<=) :: DataFingerprint -> DataFingerprint -> Bool # (>) :: DataFingerprint -> DataFingerprint -> Bool # (>=) :: DataFingerprint -> DataFingerprint -> Bool # max :: DataFingerprint -> DataFingerprint -> DataFingerprint # min :: DataFingerprint -> DataFingerprint -> DataFingerprint # | |
Show DataFingerprint Source # | |
Defined in Data.Morpheus.Types.Internal.AST.Base showsPrec :: Int -> DataFingerprint -> ShowS # show :: DataFingerprint -> String # showList :: [DataFingerprint] -> ShowS # | |
Lift DataFingerprint Source # | |
Defined in Data.Morpheus.Types.Internal.AST.Base lift :: DataFingerprint -> Q Exp # |
data TypeWrapper Source #
Instances
Eq TypeWrapper Source # | |
Defined in Data.Morpheus.Types.Internal.AST.Base (==) :: TypeWrapper -> TypeWrapper -> Bool # (/=) :: TypeWrapper -> TypeWrapper -> Bool # | |
Show TypeWrapper Source # | |
Defined in Data.Morpheus.Types.Internal.AST.Base showsPrec :: Int -> TypeWrapper -> ShowS # show :: TypeWrapper -> String # showList :: [TypeWrapper] -> ShowS # | |
Lift TypeWrapper Source # | |
Defined in Data.Morpheus.Types.Internal.AST.Base lift :: TypeWrapper -> Q Exp # |
TypeRef | |
|
data DataEnumValue Source #
Instances
Show DataEnumValue Source # | |
Defined in Data.Morpheus.Types.Internal.AST.TypeSystem showsPrec :: Int -> DataEnumValue -> ShowS # show :: DataEnumValue -> String # showList :: [DataEnumValue] -> ShowS # | |
Lift DataEnumValue Source # | |
Defined in Data.Morpheus.Types.Internal.AST.TypeSystem lift :: DataEnumValue -> Q Exp # | |
RenderGQL DataEnumValue Source # | |
Defined in Data.Morpheus.Types.Internal.AST.TypeSystem render :: DataEnumValue -> Rendering Source # |
data OperationType Source #
Instances
Eq OperationType Source # | |
Defined in Data.Morpheus.Types.Internal.AST.Base (==) :: OperationType -> OperationType -> Bool # (/=) :: OperationType -> OperationType -> Bool # | |
Show OperationType Source # | |
Defined in Data.Morpheus.Types.Internal.AST.Base showsPrec :: Int -> OperationType -> ShowS # show :: OperationType -> String # showList :: [OperationType] -> ShowS # | |
Lift OperationType Source # | |
Defined in Data.Morpheus.Types.Internal.AST.Base lift :: OperationType -> Q Exp # |
type SUBSCRIPTION = Subscription Source #
type TypeUpdater = LibUpdater Schema Source #
ConsD | |
|
data TypeCategory Source #
type DataInputUnion = [UnionMember IN] Source #
data VariableContent (stage :: Stage) where Source #
DefaultValue :: Maybe ResolvedValue -> VariableContent RESOLVED | |
ValidVariableValue | |
|
Instances
Eq (VariableContent a) Source # | |
Defined in Data.Morpheus.Types.Internal.AST.Value (==) :: VariableContent a -> VariableContent a -> Bool # (/=) :: VariableContent a -> VariableContent a -> Bool # | |
Show (VariableContent a) Source # | |
Defined in Data.Morpheus.Types.Internal.AST.Value showsPrec :: Int -> VariableContent a -> ShowS # show :: VariableContent a -> String # showList :: [VariableContent a] -> ShowS # | |
Lift (VariableContent a) Source # | |
Defined in Data.Morpheus.Types.Internal.AST.Value lift :: VariableContent a -> Q Exp # |
initTypeLib :: TypeDefinition Out -> Schema Source #
defineType :: TypeDefinition cat -> Schema -> Schema Source #
isFieldNullable :: FieldDefinition cat -> Bool Source #
kindOf :: TypeDefinition a -> TypeKind Source #
toNullableField :: FieldDefinition cat -> FieldDefinition cat Source #
toListField :: FieldDefinition cat -> FieldDefinition cat Source #
toHSWrappers :: [DataTypeWrapper] -> [TypeWrapper] Source #
isNullable :: TypeRef -> Bool Source #
toGQLWrapper :: [TypeWrapper] -> [DataTypeWrapper] Source #
isWeaker :: [TypeWrapper] -> [TypeWrapper] -> Bool Source #
isSubscription :: TypeKind -> Bool Source #
isOutputObject :: TypeKind -> Bool Source #
isSystemTypeName :: TypeName -> Bool Source #
createField :: Maybe (FieldContent TRUE cat) -> FieldName -> ([TypeWrapper], TypeName) -> FieldDefinition cat Source #
createArgument :: FieldName -> ([TypeWrapper], TypeName) -> FieldDefinition IN Source #
createEnumType :: TypeName -> [TypeName] -> TypeDefinition a Source #
createScalarType :: TypeName -> TypeDefinition a Source #
createType :: TypeName -> TypeContent TRUE a -> TypeDefinition a Source #
createUnionType :: TypeName -> [TypeName] -> TypeDefinition OUT Source #
createAlias :: TypeName -> TypeRef Source #
createInputUnionFields :: TypeName -> [UnionMember IN] -> [FieldDefinition IN] Source #
fieldVisibility :: FieldDefinition cat -> Bool Source #
lookupWith :: Eq k => (a -> k) -> k -> [a] -> Maybe a Source #
hsTypeName :: TypeName -> TypeName Source #
GQLQuery | |
|
isNullableWrapper :: [TypeWrapper] -> Bool Source #
unsafeFromFields :: [FieldDefinition cat] -> FieldsDefinition cat Source #
data OrderedMap k a Source #
Instances
Instances
Eq GQLError Source # | |
Show GQLError Source # | |
Generic GQLError Source # | |
ToJSON GQLError Source # | |
Defined in Data.Morpheus.Types.Internal.AST.Base | |
FromJSON GQLError Source # | |
Monad m => Failure GQLErrors (ResultT event m) Source # | |
(LiftOperation o, Monad m) => Failure GQLErrors (Resolver o e m) Source # | |
Failure [GQLError] (Result ev) Source # | |
type Rep GQLError Source # | |
Defined in Data.Morpheus.Types.Internal.AST.Base type Rep GQLError = D1 (MetaData "GQLError" "Data.Morpheus.Types.Internal.AST.Base" "morpheus-graphql-core-0.13.0-IGzDRUCgSIfHvjDJvh89n4" 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 #
ObjectEntry | |
|
Instances
Eq (ObjectEntry s) Source # | |
Defined in Data.Morpheus.Types.Internal.AST.Value (==) :: ObjectEntry s -> ObjectEntry s -> Bool # (/=) :: ObjectEntry s -> ObjectEntry s -> Bool # | |
Show (ObjectEntry s) Source # | |
Defined in Data.Morpheus.Types.Internal.AST.Value showsPrec :: Int -> ObjectEntry s -> ShowS # show :: ObjectEntry s -> String # showList :: [ObjectEntry s] -> ShowS # | |
Lift (ObjectEntry a) Source # | |
Defined in Data.Morpheus.Types.Internal.AST.Value lift :: ObjectEntry a -> Q Exp # | |
RenderGQL (ObjectEntry a) Source # | |
Defined in Data.Morpheus.Types.Internal.AST.Value render :: ObjectEntry a -> Rendering Source # | |
KeyOf (ObjectEntry s) Source # | |
Defined in Data.Morpheus.Types.Internal.AST.Value type KEY (ObjectEntry s) :: Type Source # keyOf :: ObjectEntry s -> KEY (ObjectEntry s) Source # | |
type KEY (ObjectEntry s) Source # | |
Defined in Data.Morpheus.Types.Internal.AST.Value |
updateSchema :: TypeName -> DataFingerprint -> [TypeUpdater] -> (a -> TypeDefinition cat) -> a -> TypeUpdater Source #
internalFingerprint :: TypeName -> [String] -> DataFingerprint Source #
class FromAny a (k :: TypeCategory) where Source #
Instances
FromAny (TypeContent TRUE) a => FromAny TypeDefinition a Source # | |
Defined in Data.Morpheus.Types.Internal.AST.TypeSystem fromAny :: TypeDefinition ANY -> Maybe (TypeDefinition a) Source # | |
FromAny (TypeContent TRUE) OUT Source # | |
Defined in Data.Morpheus.Types.Internal.AST.TypeSystem fromAny :: TypeContent TRUE ANY -> Maybe (TypeContent TRUE OUT) Source # | |
FromAny (TypeContent TRUE) IN Source # | |
Defined in Data.Morpheus.Types.Internal.AST.TypeSystem fromAny :: TypeContent TRUE ANY -> Maybe (TypeContent TRUE IN) Source # |
toAny :: a (k :: TypeCategory) -> a ANY Source #
Instances
ToAny FieldDefinition Source # | |
Defined in Data.Morpheus.Types.Internal.AST.TypeSystem toAny :: FieldDefinition k -> FieldDefinition ANY Source # | |
ToAny TypeDefinition Source # | |
Defined in Data.Morpheus.Types.Internal.AST.TypeSystem toAny :: TypeDefinition k -> TypeDefinition ANY Source # | |
ToAny (FieldContent TRUE) Source # | |
Defined in Data.Morpheus.Types.Internal.AST.TypeSystem toAny :: FieldContent TRUE k -> FieldContent TRUE ANY Source # | |
ToAny (TypeContent TRUE) Source # | |
Defined in Data.Morpheus.Types.Internal.AST.TypeSystem toAny :: TypeContent TRUE k -> TypeContent TRUE ANY Source # |
Instances
Eq TypeName Source # | |
Ord TypeName Source # | |
Defined in Data.Morpheus.Types.Internal.AST.Base | |
Show TypeName Source # | |
IsString TypeName Source # | |
Defined in Data.Morpheus.Types.Internal.AST.Base fromString :: String -> TypeName # | |
Generic TypeName Source # | |
Semigroup TypeName Source # | |
Lift TypeName Source # | |
Hashable TypeName Source # | |
Defined in Data.Morpheus.Types.Internal.AST.Base | |
ToJSON TypeName Source # | |
Defined in Data.Morpheus.Types.Internal.AST.Base | |
FromJSON TypeName Source # | |
RenderGQL TypeName Source # | |
Defined in Data.Morpheus.Types.Internal.AST.Base | |
Msg TypeName Source # | |
type Rep TypeName Source # | |
Defined in Data.Morpheus.Types.Internal.AST.Base |
Instances
Msg ByteString Source # | |
Defined in Data.Morpheus.Types.Internal.AST.Base | |
Msg Text Source # | |
Msg Value Source # | |
Msg String Source # | |
Msg TypeRef Source # | |
Msg TypeName Source # | |
Msg FieldName Source # | |
Msg DirectiveLocation Source # | |
Msg (Value a) Source # | |
toFieldName :: TypeName -> FieldName Source #
data TypeNameRef Source #
Instances
Eq TypeNameRef Source # | |
Defined in Data.Morpheus.Types.Internal.AST.Base (==) :: TypeNameRef -> TypeNameRef -> Bool # (/=) :: TypeNameRef -> TypeNameRef -> Bool # | |
Show TypeNameRef Source # | |
Defined in Data.Morpheus.Types.Internal.AST.Base showsPrec :: Int -> TypeNameRef -> ShowS # show :: TypeNameRef -> String # showList :: [TypeNameRef] -> ShowS # | |
Lift TypeNameRef Source # | |
Defined in Data.Morpheus.Types.Internal.AST.Base lift :: TypeNameRef -> Q Exp # | |
KeyOf TypeNameRef Source # | |
Defined in Data.Morpheus.Internal.Utils type KEY TypeNameRef :: Type Source # keyOf :: TypeNameRef -> KEY TypeNameRef Source # | |
type KEY TypeNameRef Source # | |
Defined in Data.Morpheus.Internal.Utils |
Fields | |
|
Instances
mkConsEnum :: DataEnumValue -> ConsD cat Source #
type Directives s = [Directive s] Source #
type DirectiveDefinitions = [DirectiveDefinition] Source #
data DirectiveDefinition Source #
Instances
Show DirectiveDefinition Source # | |
Defined in Data.Morpheus.Types.Internal.AST.TypeSystem showsPrec :: Int -> DirectiveDefinition -> ShowS # show :: DirectiveDefinition -> String # showList :: [DirectiveDefinition] -> ShowS # | |
Lift DirectiveDefinition Source # | |
Defined in Data.Morpheus.Types.Internal.AST.TypeSystem lift :: DirectiveDefinition -> Q Exp # | |
KeyOf DirectiveDefinition Source # | |
Defined in Data.Morpheus.Types.Internal.AST.TypeSystem type KEY DirectiveDefinition :: Type Source # | |
Selectable DirectiveDefinition ArgumentDefinition Source # | |
Defined in Data.Morpheus.Types.Internal.AST.TypeSystem selectOr :: d -> (ArgumentDefinition -> d) -> KEY ArgumentDefinition -> DirectiveDefinition -> d Source # | |
type KEY DirectiveDefinition Source # | |
Defined in Data.Morpheus.Types.Internal.AST.TypeSystem |
data DirectiveLocation Source #
Instances
Eq DirectiveLocation Source # | |
Defined in Data.Morpheus.Types.Internal.AST.DirectiveLocation (==) :: DirectiveLocation -> DirectiveLocation -> Bool # (/=) :: DirectiveLocation -> DirectiveLocation -> Bool # | |
Show DirectiveLocation Source # | |
Defined in Data.Morpheus.Types.Internal.AST.DirectiveLocation showsPrec :: Int -> DirectiveLocation -> ShowS # show :: DirectiveLocation -> String # showList :: [DirectiveLocation] -> ShowS # | |
Lift DirectiveLocation Source # | |
Defined in Data.Morpheus.Types.Internal.AST.DirectiveLocation lift :: DirectiveLocation -> Q Exp # | |
Msg DirectiveLocation Source # | |
data FieldContent (bool :: Bool) (cat :: TypeCategory) where Source #
DefaultInputValue | |
| |
FieldArgs | |
|
Instances
ToAny (FieldContent TRUE) Source # | |
Defined in Data.Morpheus.Types.Internal.AST.TypeSystem toAny :: FieldContent TRUE k -> FieldContent TRUE ANY Source # | |
Show (FieldContent bool cat) Source # | |
Defined in Data.Morpheus.Types.Internal.AST.TypeSystem showsPrec :: Int -> FieldContent bool cat -> ShowS # show :: FieldContent bool cat -> String # showList :: [FieldContent bool cat] -> ShowS # | |
Lift (FieldContent bool cat) Source # | |
Defined in Data.Morpheus.Types.Internal.AST.TypeSystem lift :: FieldContent bool cat -> Q Exp # |
fieldContentArgs :: FieldContent b cat -> OrderedMap FieldName ArgumentDefinition Source #
mkField :: FieldName -> ([TypeWrapper], TypeName) -> FieldDefinition cat Source #
data TypeNameTH Source #
Instances
Show TypeNameTH Source # | |
Defined in Data.Morpheus.Types.Internal.AST.TH showsPrec :: Int -> TypeNameTH -> ShowS # show :: TypeNameTH -> String # showList :: [TypeNameTH] -> ShowS # |
mkObjectField :: ArgumentsDefinition -> FieldName -> ([TypeWrapper], TypeName) -> FieldDefinition OUT Source #
data UnionMember (cat :: TypeCategory) Source #
Instances
Eq (UnionMember cat) Source # | |
Defined in Data.Morpheus.Types.Internal.AST.TypeSystem (==) :: UnionMember cat -> UnionMember cat -> Bool # (/=) :: UnionMember cat -> UnionMember cat -> Bool # | |
Show (UnionMember cat) Source # | |
Defined in Data.Morpheus.Types.Internal.AST.TypeSystem showsPrec :: Int -> UnionMember cat -> ShowS # show :: UnionMember cat -> String # showList :: [UnionMember cat] -> ShowS # | |
Lift (UnionMember cat) Source # | |
Defined in Data.Morpheus.Types.Internal.AST.TypeSystem lift :: UnionMember cat -> Q Exp # | |
RenderGQL (UnionMember cat) Source # | |
Defined in Data.Morpheus.Types.Internal.AST.TypeSystem render :: UnionMember cat -> Rendering Source # |
mkUnionMember :: TypeName -> UnionMember cat Source #