summaryrefslogtreecommitdiff
path: root/src/Language/GraphQL/Schema.hs
diff options
context:
space:
mode:
authorEugen Wissner <belka@caraus.de>2019-08-30 07:26:04 +0200
committerEugen Wissner <belka@caraus.de>2019-08-30 07:26:04 +0200
commit22313d05df7d96cd8106bc42f787bc74d74596de (patch)
treead92241fb9b317176adef1897cfc0c3a0dac55b4 /src/Language/GraphQL/Schema.hs
parentc1943c1979a0bfd37dae3a87d863f06938176baf (diff)
downloadgraphql-22313d05df7d96cd8106bc42f787bc74d74596de.tar.gz
Deprecate Language.GraphQL.Execute.Schema
It is not a schema (at least not a complete one), but a resolver list, and the resolvers should be provided by the user separately, because the schema can originate from a GraphQL document. Schema name should be free to provide a data type for the real schema later.
Diffstat (limited to 'src/Language/GraphQL/Schema.hs')
-rw-r--r--src/Language/GraphQL/Schema.hs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Language/GraphQL/Schema.hs b/src/Language/GraphQL/Schema.hs
index 08b52ce..3170a32 100644
--- a/src/Language/GraphQL/Schema.hs
+++ b/src/Language/GraphQL/Schema.hs
@@ -1,7 +1,7 @@
{-# LANGUAGE OverloadedStrings #-}
-- | This module provides a representation of a @GraphQL@ Schema in addition to
--- functions for defining and manipulating Schemas.
+-- functions for defining and manipulating schemas.
module Language.GraphQL.Schema
( Resolver
, Schema
@@ -43,6 +43,7 @@ import Language.GraphQL.Trans
import Language.GraphQL.Type
import Language.GraphQL.AST.Core
+{-# DEPRECATED Schema "Use NonEmpty (Resolver m) instead" #-}
-- | A GraphQL schema.
-- @m@ is usually expected to be an instance of 'MonadIO'.
type Schema m = NonEmpty (Resolver m)