graphql- Haskell GraphQL implementation

Safe HaskellSafe



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



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.