Deprecate gql
All checks were successful
Build / audit (push) Successful in 17s
Build / test (push) Successful in 6m3s
Build / doc (push) Successful in 5m5s

This commit is contained in:
Eugen Wissner 2024-10-24 16:56:31 +02:00
parent 67720f9ebe
commit 5abc377e9d
Signed by: belka
GPG Key ID: A27FDC1E8EE902C0
2 changed files with 2 additions and 0 deletions

View File

@ -12,6 +12,7 @@ and this project adheres to
repeatable directives. The parser can parse repeatable directive definitions. repeatable directives. The parser can parse repeatable directive definitions.
Validation allows repeatable directives. Validation allows repeatable directives.
- `AST.Document.Directive` is a record. - `AST.Document.Directive` is a record.
- `gql` quasi quoter is deprecated (moved to graphql-spice package).
### Fixed ### Fixed
- `gql` quasi quoter recognizeds all GraphQL line endings (CR, LF and CRLF). - `gql` quasi quoter recognizeds all GraphQL line endings (CR, LF and CRLF).

View File

@ -35,6 +35,7 @@ stripIndentation code = reverse
-- | Removes leading and trailing newlines. Indentation of the first line is -- | Removes leading and trailing newlines. Indentation of the first line is
-- removed from each line of the string. -- removed from each line of the string.
{-# DEPRECATED gql "Use Language.GraphQL.Class.gql from graphql-spice instead" #-}
gql :: QuasiQuoter gql :: QuasiQuoter
gql = QuasiQuoter gql = QuasiQuoter
{ quoteExp = pure . LitE . StringL . stripIndentation { quoteExp = pure . LitE . StringL . stripIndentation