hey, I'm struggling with the very basic examples:
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE TypeApplications #-}
{-# LANGUAGE TypeOperators #-}
import Data.Text (Text)
import Data.Monoid ((<>))
import GraphQL
import GraphQL.API
import GraphQL.Resolver (Handler)
type Hello = Object "Hello" '[]
'[ Argument "who" Text :> Field "greeting" Text ]
Yields:
error:
Illegal type: ‘"Hello"’ Perhaps you intended to use DataKinds
|
16 | type Hello = Object "Hello" '[]
| ^^^^^^^
And many others like that... Any idea of what I could be doing wrong ?