diff options
| author | Eugen Wissner <belka@caraus.de> | 2021-12-24 13:35:18 +0100 |
|---|---|---|
| committer | Eugen Wissner <belka@caraus.de> | 2021-12-24 13:35:18 +0100 |
| commit | 116aa1f6bbcaa010fdc227df4cde3b39c5d07153 (patch) | |
| tree | 0d10b96943b392ad857d54ed0b49575cc95c83ba /src/Language/GraphQL.hs | |
| parent | df078a59d0ea80b383df251a789df8f6f539b072 (diff) | |
| download | graphql-116aa1f6bbcaa010fdc227df4cde3b39c5d07153.tar.gz | |
Put JSON support behind a flag
Diffstat (limited to 'src/Language/GraphQL.hs')
| -rw-r--r-- | src/Language/GraphQL.hs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/Language/GraphQL.hs b/src/Language/GraphQL.hs index 03ef54b..20bb123 100644 --- a/src/Language/GraphQL.hs +++ b/src/Language/GraphQL.hs @@ -1,3 +1,6 @@ +{-# LANGUAGE CPP #-} + +#ifdef WITH_JSON {-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE RecordWildCards #-} @@ -73,3 +76,9 @@ graphqlSubs schema operationName variableValues document' = [ ("line", Aeson.toJSON line) , ("column", Aeson.toJSON column) ] +#else +-- | This module provides the functions to parse and execute @GraphQL@ queries. +module Language.GraphQL + ( + ) where +#endif |
