Add a reader instance to the resolvers

The Reader contains a Name/Value hashmap, which will contain resolver
arguments.
This commit is contained in:
2019-11-23 09:49:12 +01:00
parent 625d7100ca
commit 587aab005e
4 changed files with 35 additions and 8 deletions

View File

@ -23,10 +23,10 @@ import Data.Text.Lazy.Builder.Int (decimal)
import Data.Text.Lazy.Builder.RealFloat (realFloat)
import qualified Language.GraphQL.AST as Full
-- | Instructs the encoder whether a GraphQL should be minified or pretty
-- printed.
--
-- Use 'pretty' and 'minified' to construct the formatter.
-- | Instructs the encoder whether the GraphQL document should be minified or
-- pretty printed.
--
-- Use 'pretty' or 'minified' to construct the formatter.
data Formatter
= Minified
| Pretty Word