Deprecate gql
This commit is contained in:
parent
67720f9ebe
commit
5abc377e9d
@ -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).
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user