Add cabal.project to build with the correct flags

This commit is contained in:
Eugen Wissner 2022-01-15 11:50:20 +01:00
parent 82b21bece8
commit 396b480806
Signed by: belka
GPG Key ID: A27FDC1E8EE902C0
8 changed files with 24 additions and 9 deletions

4
cabal.project Normal file
View File

@ -0,0 +1,4 @@
packages: .
constraints: graphql -json
tests: False

View File

@ -24,14 +24,15 @@ source-repository head
library
exposed-modules:
Language.GraphQL
Language.GraphQL.Foundation,
Language.GraphQL.Serialize
other-modules:
hs-source-dirs: src
ghc-options: -Wall
build-depends:
-- aeson >= 2.0.2.0 && < 2.1
aeson ^>= 2.0.3,
base ^>=4.14.3.0,
graphql >= 1.0.1.0 && < 1.1
graphql ^>= 1.0.2
default-language: Haskell2010
test-suite graphql-test
@ -48,6 +49,7 @@ test-suite graphql-test
aeson,
base >= 4.8 && < 5,
graphql,
graphql-spice,
hspec >= 2.9.1 && < 3,
text,
unordered-containers

View File

@ -1,3 +0,0 @@
module Language.GraphQL
(
) where

View File

@ -0,0 +1,5 @@
module Language.GraphQL.Foundation
( module Language.GraphQL.Serialize
) where
import Language.GraphQL.Serialize

View File

@ -0,0 +1,7 @@
module Language.GraphQL.Serialize
( JSON(..)
) where
import qualified Data.Aeson as Aeson
newtype JSON = JSON Aeson.Value

View File

@ -11,7 +11,7 @@ module Language.GraphQL.DirectiveSpec
import Data.Aeson (object, (.=))
import qualified Data.Aeson as Aeson
import qualified Data.HashMap.Strict as HashMap
import Language.GraphQL
import Language.GraphQL.Foundation
import Language.GraphQL.TH
import Language.GraphQL.Type
import qualified Language.GraphQL.Type.Out as Out

View File

@ -12,7 +12,7 @@ import Data.Aeson ((.=))
import qualified Data.Aeson as Aeson
import qualified Data.HashMap.Strict as HashMap
import Data.Text (Text)
import Language.GraphQL
import Language.GraphQL.Foundation
import Language.GraphQL.Type
import qualified Language.GraphQL.Type.Out as Out
import Language.GraphQL.TH

View File

@ -10,7 +10,7 @@ module Language.GraphQL.RootOperationSpec
import Data.Aeson ((.=), object)
import qualified Data.HashMap.Strict as HashMap
import Language.GraphQL
import Language.GraphQL.Foundation
import Test.Hspec (Spec, describe, it)
import Language.GraphQL.TH
import Language.GraphQL.Type