From 5abc377e9d28e1845e447266454368872a49cada Mon Sep 17 00:00:00 2001 From: Eugen Wissner Date: Thu, 24 Oct 2024 16:56:31 +0200 Subject: Deprecate gql --- CHANGELOG.md | 1 + src/Language/GraphQL/TH.hs | 1 + 2 files changed, 2 insertions(+) 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 -- cgit v1.2.3