From 116aa1f6bbcaa010fdc227df4cde3b39c5d07153 Mon Sep 17 00:00:00 2001 From: Eugen Wissner Date: Fri, 24 Dec 2021 13:35:18 +0100 Subject: Put JSON support behind a flag --- src/Language/GraphQL.hs | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/Language/GraphQL.hs') 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 -- cgit v1.2.3