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/Test/Hspec | |
| parent | df078a59d0ea80b383df251a789df8f6f539b072 (diff) | |
| download | graphql-116aa1f6bbcaa010fdc227df4cde3b39c5d07153.tar.gz | |
Put JSON support behind a flag
Diffstat (limited to 'src/Test/Hspec')
| -rw-r--r-- | src/Test/Hspec/GraphQL.hs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/Test/Hspec/GraphQL.hs b/src/Test/Hspec/GraphQL.hs index 253b366..5d812bf 100644 --- a/src/Test/Hspec/GraphQL.hs +++ b/src/Test/Hspec/GraphQL.hs @@ -2,6 +2,9 @@ v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at https://mozilla.org/MPL/2.0/. -} +{-# LANGUAGE CPP #-} + +#ifdef WITH_JSON {-# LANGUAGE ExplicitForAll #-} {-# LANGUAGE OverloadedStrings #-} @@ -39,3 +42,8 @@ shouldResolve executor query = do response `shouldNotSatisfy` HashMap.member "errors" _ -> expectationFailure "the query is expected to resolve to a value, but it resolved to an event stream" +#else +module Test.Hspec.GraphQL + ( + ) where +#endif |
