graphql-1.0.2.0: Haskell GraphQL implementation
Safe HaskellSafe
LanguageHaskell2010

Language.GraphQL.AST.Encoder

Description

This module defines a minifier and a printer for the GraphQL language.

Synopsis

Documentation

data Formatter Source #

Instructs the encoder whether the GraphQL document should be minified or pretty printed.

Use pretty or minified to construct the formatter.

directive :: Formatter -> Directive -> Text Source #

Converts a Directive into a string.

document :: Formatter -> Document -> Text Source #

Converts a Document' into a string.

minified :: Formatter Source #

Constructs a formatter for minifying.

pretty :: Formatter Source #

Constructs a formatter for pretty printing.

type' :: Type -> Text Source #

Converts a Type a type into a string.

value :: Formatter -> Value -> Text Source #

Converts a Value into a string.