Document undocumented modules

Fixes #15.
This commit is contained in:
Eugen Wissner 2019-09-25 05:35:36 +02:00
parent 2b5c719ab0
commit 70f7e1bd8e
6 changed files with 11 additions and 3 deletions

View File

@ -68,6 +68,7 @@ data OperationType = Query | Mutation deriving (Eq, Show)
-- | "Top-level" selection, selection on a operation.
type SelectionSet = NonEmpty Selection
-- | Field selection.
type SelectionSetOpt = [Selection]
-- | Single selection element.

View File

@ -1,4 +1,8 @@
{-# LANGUAGE OverloadedStrings #-}
-- | After the document is parsed, before getting executed the AST is
-- transformed into a similar, simpler AST. This module is responsible for
-- this transformation.
module Language.GraphQL.AST.Transform
( document
) where

View File

@ -31,11 +31,11 @@ data Formatter
= Minified
| Pretty Word
-- Constructs a formatter for pretty printing.
-- | Constructs a formatter for pretty printing.
pretty :: Formatter
pretty = Pretty 0
-- Constructs a formatter for minifying.
-- | Constructs a formatter for minifying.
minified :: Formatter
minified = Minified

View File

@ -1,5 +1,7 @@
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE OverloadedStrings #-}
-- | @GraphQL@ document parser.
module Language.GraphQL.Parser
( document
) where

View File

@ -1,3 +1,4 @@
-- | Monad transformer stack used by the @GraphQL@ resolvers.
module Language.GraphQL.Trans
( ActionT(..)
) where

View File

@ -1,4 +1,4 @@
resolver: lts-14.6
resolver: lts-14.7
packages:
- '.'
extra-deps: []