diff options
| author | Eugen Wissner <belka@caraus.de> | 2024-10-24 16:56:31 +0200 |
|---|---|---|
| committer | Eugen Wissner <belka@caraus.de> | 2024-10-24 16:56:31 +0200 |
| commit | 5abc377e9d28e1845e447266454368872a49cada (patch) | |
| tree | 572fa3eb2f14851c6c870b33db496e92d73fac5a | |
| parent | 67720f9ebefeff8b7c1e8e7dc6831c435a8b1740 (diff) | |
| download | graphql-5abc377e9d28e1845e447266454368872a49cada.tar.gz | |
Deprecate gql
| -rw-r--r-- | CHANGELOG.md | 1 | ||||
| -rw-r--r-- | src/Language/GraphQL/TH.hs | 1 |
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 |
