Safe Haskell | Safe |
---|---|
Language | Haskell2010 |
This module defines a minifier and a printer for the GraphQL
language.
Synopsis
- data Formatter
- definition :: Formatter -> ExecutableDefinition -> Text
- directive :: Formatter -> Directive -> Text
- document :: Formatter -> Document -> Text
- minified :: Formatter
- operationType :: Formatter -> OperationType -> Text
- pretty :: Formatter
- type' :: Type -> Text
- typeSystemDefinition :: Formatter -> TypeSystemDefinition -> Text
- value :: Formatter -> Value -> Text
Documentation
definition :: Formatter -> ExecutableDefinition -> Text Source #
Converts a ExecutableDefinition
into a string.
operationType :: Formatter -> OperationType -> Text Source #
Produces lowercase operation type: query, mutation or subscription.
typeSystemDefinition :: Formatter -> TypeSystemDefinition -> Text Source #
Converts a TypeSystemDefinition
into a string.