summaryrefslogtreecommitdiff
path: root/graphql.cabal
diff options
context:
space:
mode:
authorEugen Wissner <belka@caraus.de>2020-07-14 19:37:56 +0200
committerEugen Wissner <belka@caraus.de>2020-07-14 19:37:56 +0200
commitae2210f6598f166116abebc1163e1523d3bc627c (patch)
tree02b18f29d0b025a702366e70405dbcc203092c96 /graphql.cabal
parent840e129c4496b4e8145480d2b3c3cb34f505702e (diff)
downloadgraphql-ae2210f6598f166116abebc1163e1523d3bc627c.tar.gz
Support subscriptions
This is experimental support. The implementation is based on conduit and is boring. There is a new resolver data constructor that should create a source event stream. The executor receives the events, pipes them through the normal execution and puts them into the response stream which is returned to the user. - Tests are missing. - The executor should check field value resolver on subscription types. - The graphql function should probably return (Either ResponseEventStream Response), but I'm not sure about this. It will make the usage more complicated if no subscriptions are involved, but with the current API implementing subscriptions is more difficult than it should be.
Diffstat (limited to 'graphql.cabal')
-rw-r--r--graphql.cabal7
1 files changed, 4 insertions, 3 deletions
diff --git a/graphql.cabal b/graphql.cabal
index e7ac249..5f3c8ea 100644
--- a/graphql.cabal
+++ b/graphql.cabal
@@ -4,7 +4,7 @@ cabal-version: 1.12
--
-- see: https://github.com/sol/hpack
--
--- hash: c06170c5fd3d1c3e42fb8c8fde8afd88bf3dd142f6cee1f83128e8d00d443f2d
+-- hash: 38e16611476c6163a049a4ddbaef34cf3fdef8f85d25f7bcaed839372c9fdf75
name: graphql
version: 0.8.0.0
@@ -53,6 +53,7 @@ library
Language.GraphQL.Type.Schema
other-modules:
Language.GraphQL.Execute.Execution
+ Language.GraphQL.Execute.Subscribe
Language.GraphQL.Execute.Transform
Language.GraphQL.Type.Definition
Language.GraphQL.Type.Internal
@@ -61,6 +62,7 @@ library
build-depends:
aeson
, base >=4.7 && <5
+ , conduit
, containers
, megaparsec
, parser-combinators
@@ -68,7 +70,6 @@ library
, text
, transformers
, unordered-containers
- , vector
default-language: Haskell2010
test-suite tasty
@@ -97,6 +98,7 @@ test-suite tasty
QuickCheck
, aeson
, base >=4.7 && <5
+ , conduit
, containers
, graphql
, hspec
@@ -109,5 +111,4 @@ test-suite tasty
, text
, transformers
, unordered-containers
- , vector
default-language: Haskell2010