From 721cbaee17561f3d9b58fb0c4ebe6e3a29d6c73d Mon Sep 17 00:00:00 2001 From: Eugen Wissner Date: Tue, 10 Sep 2019 10:06:48 +0200 Subject: Release 0.5.0.1 --- docs/tutorial/tutorial.lhs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'docs/tutorial/tutorial.lhs') diff --git a/docs/tutorial/tutorial.lhs b/docs/tutorial/tutorial.lhs index a4943c6..d017ddd 100644 --- a/docs/tutorial/tutorial.lhs +++ b/docs/tutorial/tutorial.lhs @@ -24,7 +24,6 @@ Since this file is a literate haskell file, we start by importing some dependenc > import Data.Time (getCurrentTime) > > import Language.GraphQL -> import Language.GraphQL.Schema (Schema) > import qualified Language.GraphQL.Schema as Schema > import Language.GraphQL.Trans (ActionT(..)) > @@ -37,7 +36,7 @@ example from [graphql.js](https://github.com/graphql/graphql-js). First we build a GraphQL schema. -> schema1 :: Schema IO +> schema1 :: NonEmpty (Schema.Resolver IO) > schema1 = hello :| [] > > hello :: Schema.Resolver IO @@ -67,7 +66,7 @@ returning For this example, we're going to be using time. -> schema2 :: Schema IO +> schema2 :: NonEmpty (Schema.Resolver IO) > schema2 = time :| [] > > time :: Schema.Resolver IO @@ -127,7 +126,7 @@ This will fail Now that we have two resolvers, we can define a schema which uses them both. -> schema3 :: Schema IO +> schema3 :: NonEmpty (Schema.Resolver IO) > schema3 = hello :| [time] > > query3 :: Text -- cgit v1.2.3