parent
2b5c719ab0
commit
70f7e1bd8e
@ -68,6 +68,7 @@ data OperationType = Query | Mutation deriving (Eq, Show)
|
|||||||
-- | "Top-level" selection, selection on a operation.
|
-- | "Top-level" selection, selection on a operation.
|
||||||
type SelectionSet = NonEmpty Selection
|
type SelectionSet = NonEmpty Selection
|
||||||
|
|
||||||
|
-- | Field selection.
|
||||||
type SelectionSetOpt = [Selection]
|
type SelectionSetOpt = [Selection]
|
||||||
|
|
||||||
-- | Single selection element.
|
-- | Single selection element.
|
||||||
|
@ -1,4 +1,8 @@
|
|||||||
{-# LANGUAGE OverloadedStrings #-}
|
{-# LANGUAGE OverloadedStrings #-}
|
||||||
|
|
||||||
|
-- | After the document is parsed, before getting executed the AST is
|
||||||
|
-- transformed into a similar, simpler AST. This module is responsible for
|
||||||
|
-- this transformation.
|
||||||
module Language.GraphQL.AST.Transform
|
module Language.GraphQL.AST.Transform
|
||||||
( document
|
( document
|
||||||
) where
|
) where
|
||||||
|
@ -31,11 +31,11 @@ data Formatter
|
|||||||
= Minified
|
= Minified
|
||||||
| Pretty Word
|
| Pretty Word
|
||||||
|
|
||||||
-- Constructs a formatter for pretty printing.
|
-- | Constructs a formatter for pretty printing.
|
||||||
pretty :: Formatter
|
pretty :: Formatter
|
||||||
pretty = Pretty 0
|
pretty = Pretty 0
|
||||||
|
|
||||||
-- Constructs a formatter for minifying.
|
-- | Constructs a formatter for minifying.
|
||||||
minified :: Formatter
|
minified :: Formatter
|
||||||
minified = Minified
|
minified = Minified
|
||||||
|
|
||||||
|
@ -1,5 +1,7 @@
|
|||||||
{-# LANGUAGE LambdaCase #-}
|
{-# LANGUAGE LambdaCase #-}
|
||||||
{-# LANGUAGE OverloadedStrings #-}
|
{-# LANGUAGE OverloadedStrings #-}
|
||||||
|
|
||||||
|
-- | @GraphQL@ document parser.
|
||||||
module Language.GraphQL.Parser
|
module Language.GraphQL.Parser
|
||||||
( document
|
( document
|
||||||
) where
|
) where
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
-- | Monad transformer stack used by the @GraphQL@ resolvers.
|
||||||
module Language.GraphQL.Trans
|
module Language.GraphQL.Trans
|
||||||
( ActionT(..)
|
( ActionT(..)
|
||||||
) where
|
) where
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
resolver: lts-14.6
|
resolver: lts-14.7
|
||||||
packages:
|
packages:
|
||||||
- '.'
|
- '.'
|
||||||
extra-deps: []
|
extra-deps: []
|
||||||
|
Loading…
Reference in New Issue
Block a user