diff options
| author | Eugen Wissner <belka@caraus.de> | 2019-12-26 13:00:47 +0100 |
|---|---|---|
| committer | Eugen Wissner <belka@caraus.de> | 2019-12-26 13:07:21 +0100 |
| commit | 56d88310df7c92a1721cc0dfa08a1d232c47c14b (patch) | |
| tree | 15604a675752a64e4a3be68e8848c7133e7ad5c8 /src/Language/GraphQL/AST/DirectiveLocation.hs | |
| parent | e3a495a778e8ccec18e5d5c494ab3b0eed31b13c (diff) | |
| download | graphql-56d88310df7c92a1721cc0dfa08a1d232c47c14b.tar.gz | |
Add definition module
Diffstat (limited to 'src/Language/GraphQL/AST/DirectiveLocation.hs')
| -rw-r--r-- | src/Language/GraphQL/AST/DirectiveLocation.hs | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/src/Language/GraphQL/AST/DirectiveLocation.hs b/src/Language/GraphQL/AST/DirectiveLocation.hs new file mode 100644 index 0000000..12c7e18 --- /dev/null +++ b/src/Language/GraphQL/AST/DirectiveLocation.hs @@ -0,0 +1,34 @@ +module Language.GraphQL.AST.DirectiveLocation + ( DirectiveLocation + , ExecutableDirectiveLocation + , TypeSystemDirectiveLocation + ) where + +data DirectiveLocation + = ExecutableDirectiveLocation ExecutableDirectiveLocation + | TypeSystemDirectiveLocation TypeSystemDirectiveLocation + deriving (Eq, Show) + +data ExecutableDirectiveLocation + = Query + | Mutation + | Subscription + | Field + | FragmentDefinition + | FragmentSpread + | InlineFragment + deriving (Eq, Show) + +data TypeSystemDirectiveLocation + = Schema + | Scalar + | Object + | FieldDefinition + | ArgumentDefinition + | Interface + | Union + | Enum + | EnumValue + | InputObject + | InputFieldDefinition + deriving (Eq, Show) |
