Document all public symbols.

Mostly basic documentation. Fixes #4.
This commit is contained in:
2019-08-29 07:40:50 +02:00
parent 5175586def
commit c1943c1979
6 changed files with 56 additions and 22 deletions

View File

@ -18,7 +18,8 @@ import qualified Language.GraphQL.Schema as Schema
-- empty list is returned.
type Fragmenter = Core.Name -> [Core.Field]
-- TODO: Replace Maybe by MonadThrow with CustomError
-- | Rewrites the original syntax tree into an intermediate representation used
-- for query execution.
document :: Schema.Subs -> Full.Document -> Maybe Core.Document
document subs doc = operations subs fr ops
where