graphql-0.5.0.0: Haskell GraphQL implementation

Safe HaskellSafe
LanguageHaskell2010

Language.GraphQL.Encoder

Description

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

Synopsis

Documentation

data Formatter Source #

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

Use pretty and minified to construct the formatter.

definition :: Formatter -> Definition -> Text Source #

Converts a Definition into a string.

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

Converts a Directive into a string.

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

Converts a Document into a string.

type' :: Type -> Text Source #

Converts a Type a type into a string.

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

Converts a Value into a string.