summaryrefslogtreecommitdiff
path: root/src/Language/GraphQL
diff options
context:
space:
mode:
authorEugen Wissner <belka@caraus.de>2022-12-24 18:09:52 +0100
committerEugen Wissner <belka@caraus.de>2022-12-24 18:09:52 +0100
commit2f9881bb211fa40361a745078ed790e19747c801 (patch)
treed986d5fdb5179d2b206eba5d6010763f6e18fa6b /src/Language/GraphQL
parentbf2e4925b45991476c430bd635d8fbabe7cbecbf (diff)
downloadgraphql-2f9881bb211fa40361a745078ed790e19747c801.tar.gz
Fix GHC 9.2 warnings and deprecations
- Fix GHC 9.2 warnings - Convert comments to proper deprecations
Diffstat (limited to 'src/Language/GraphQL')
-rw-r--r--src/Language/GraphQL/Error.hs12
1 files changed, 3 insertions, 9 deletions
diff --git a/src/Language/GraphQL/Error.hs b/src/Language/GraphQL/Error.hs
index 403aaf6..87ee702 100644
--- a/src/Language/GraphQL/Error.hs
+++ b/src/Language/GraphQL/Error.hs
@@ -100,11 +100,9 @@ instance Exception ResolverException
-- * Deprecated
+{-# DEPRECATED runCollectErrs "runCollectErrs was part of the old executor and isn't used anymore" #-}
-- | Runs the given query computation, but collects the errors into an error
-- list, which is then sent back with the data.
---
--- {-# DEPRECATED runCollectErrs was part of the old executor and isn't used
--- anymore #-}
runCollectErrs :: (Monad m, Serialize a)
=> HashMap Name (Schema.Type m)
-> CollectErrsT m a
@@ -114,17 +112,13 @@ runCollectErrs types' res = do
$ Resolution{ errors = Seq.empty, types = types' }
pure $ Response dat errors
+{-# DEPRECATED Resolution "Resolution was part of the old executor and isn't used anymore" #-}
-- | Executor context.
---
--- {-# DEPRECATED Resolution was part of the old executor and isn't used
--- anymore #-}
data Resolution m = Resolution
{ errors :: Seq Error
, types :: HashMap Name (Schema.Type m)
}
+{-# DEPRECATED CollectErrsT "CollectErrsT was part of the old executor and isn't used anymore" #-}
-- | A wrapper to pass error messages around.
---
--- {-# DEPRECATED CollectErrsT was part of the old executor and isn't used
--- anymore #-}
type CollectErrsT m = StateT (Resolution m) m