forked from OSS/graphql-spice
Add cabal.project to build with the correct flags
This commit is contained in:
parent
82b21bece8
commit
396b480806
4
cabal.project
Normal file
4
cabal.project
Normal file
@ -0,0 +1,4 @@
|
||||
packages: .
|
||||
|
||||
constraints: graphql -json
|
||||
tests: False
|
@ -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
|
||||
|
@ -1,3 +0,0 @@
|
||||
module Language.GraphQL
|
||||
(
|
||||
) where
|
5
src/Language/GraphQL/Foundation.hs
Normal file
5
src/Language/GraphQL/Foundation.hs
Normal file
@ -0,0 +1,5 @@
|
||||
module Language.GraphQL.Foundation
|
||||
( module Language.GraphQL.Serialize
|
||||
) where
|
||||
|
||||
import Language.GraphQL.Serialize
|
7
src/Language/GraphQL/Serialize.hs
Normal file
7
src/Language/GraphQL/Serialize.hs
Normal file
@ -0,0 +1,7 @@
|
||||
module Language.GraphQL.Serialize
|
||||
( JSON(..)
|
||||
) where
|
||||
|
||||
import qualified Data.Aeson as Aeson
|
||||
|
||||
newtype JSON = JSON Aeson.Value
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user