summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEugen Wissner <belka@caraus.de>2024-10-24 16:56:31 +0200
committerEugen Wissner <belka@caraus.de>2024-10-24 16:56:31 +0200
commit5abc377e9d28e1845e447266454368872a49cada (patch)
tree572fa3eb2f14851c6c870b33db496e92d73fac5a
parent67720f9ebefeff8b7c1e8e7dc6831c435a8b1740 (diff)
downloadgraphql-5abc377e9d28e1845e447266454368872a49cada.tar.gz
Deprecate gql
-rw-r--r--CHANGELOG.md1
-rw-r--r--src/Language/GraphQL/TH.hs1
2 files changed, 2 insertions, 0 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 9095874..26b410a 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -12,6 +12,7 @@ and this project adheres to
repeatable directives. The parser can parse repeatable directive definitions.
Validation allows repeatable directives.
- `AST.Document.Directive` is a record.
+- `gql` quasi quoter is deprecated (moved to graphql-spice package).
### Fixed
- `gql` quasi quoter recognizeds all GraphQL line endings (CR, LF and CRLF).
diff --git a/src/Language/GraphQL/TH.hs b/src/Language/GraphQL/TH.hs
index 35c0d4a..22ffdd0 100644
--- a/src/Language/GraphQL/TH.hs
+++ b/src/Language/GraphQL/TH.hs
@@ -35,6 +35,7 @@ stripIndentation code = reverse
-- | Removes leading and trailing newlines. Indentation of the first line is
-- removed from each line of the string.
+{-# DEPRECATED gql "Use Language.GraphQL.Class.gql from graphql-spice instead" #-}
gql :: QuasiQuoter
gql = QuasiQuoter
{ quoteExp = pure . LitE . StringL . stripIndentation