Release 0.5.0.0
This commit is contained in:
parent
045b6d15fb
commit
f54e9451d2
@ -1,12 +1,12 @@
|
|||||||
# Change Log
|
# Change Log
|
||||||
All notable changes to this project will be documented in this file.
|
All notable changes to this project will be documented in this file.
|
||||||
|
|
||||||
## [Unreleased]
|
## [0.5.0.0] - 2019-08-14
|
||||||
### Added
|
### Added
|
||||||
- `executeWithName` executes an operation with the given name.
|
- `executeWithName` executes an operation with the given name.
|
||||||
- Export `Language.GraphQL.Encoder.definition`.
|
- Export `Language.GraphQL.Encoder.definition`,
|
||||||
|
`Language.GraphQL.Encoder.type'` and `Language.GraphQL.Encoder.directive`.
|
||||||
- Export `Language.GraphQL.Encoder.value`. Escapes \ and " in strings now.
|
- Export `Language.GraphQL.Encoder.value`. Escapes \ and " in strings now.
|
||||||
- Export `Language.GraphQL.Encoder.type'`.
|
|
||||||
|
|
||||||
### Changed
|
### Changed
|
||||||
- `Operation` includes now possible operation name which allows to support
|
- `Operation` includes now possible operation name which allows to support
|
||||||
@ -70,6 +70,7 @@ All notable changes to this project will be documented in this file.
|
|||||||
### Added
|
### Added
|
||||||
- Data types for the GraphQL language.
|
- Data types for the GraphQL language.
|
||||||
|
|
||||||
|
[0.5.0.0]: https://github.com/caraus-ecms/graphql/compare/v0.4.0.0...v0.5.0.0
|
||||||
[0.4.0.0]: https://github.com/caraus-ecms/graphql/compare/v0.3...v0.4.0.0
|
[0.4.0.0]: https://github.com/caraus-ecms/graphql/compare/v0.3...v0.4.0.0
|
||||||
[0.3]: https://github.com/caraus-ecms/graphql/compare/v0.2.1...v0.3
|
[0.3]: https://github.com/caraus-ecms/graphql/compare/v0.2.1...v0.3
|
||||||
[0.2.1]: https://github.com/caraus-ecms/graphql/compare/v0.2...v0.2.1
|
[0.2.1]: https://github.com/caraus-ecms/graphql/compare/v0.2...v0.2.1
|
||||||
|
@ -4,10 +4,10 @@ cabal-version: 1.12
|
|||||||
--
|
--
|
||||||
-- see: https://github.com/sol/hpack
|
-- see: https://github.com/sol/hpack
|
||||||
--
|
--
|
||||||
-- hash: cb68243309f47fc44768d14981c4f6f8b3f1bb9dc37dd17a63996418d6aac375
|
-- hash: 6598c2424405b7a92a4672ad7d1a4e8ad768ea47bf3ed0c3c5ae51bac8730301
|
||||||
|
|
||||||
name: graphql
|
name: graphql
|
||||||
version: 0.4.0.0
|
version: 0.5.0.0
|
||||||
synopsis: Haskell GraphQL implementation
|
synopsis: Haskell GraphQL implementation
|
||||||
description: This package provides a rudimentary parser for the <https://graphql.github.io/graphql-spec/June2018/ GraphQL> language.
|
description: This package provides a rudimentary parser for the <https://graphql.github.io/graphql-spec/June2018/ GraphQL> language.
|
||||||
category: Language
|
category: Language
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
name: graphql
|
name: graphql
|
||||||
version: 0.4.0.0
|
version: 0.5.0.0
|
||||||
synopsis: Haskell GraphQL implementation
|
synopsis: Haskell GraphQL implementation
|
||||||
description:
|
description:
|
||||||
This package provides a rudimentary parser for the
|
This package provides a rudimentary parser for the
|
||||||
|
@ -5,6 +5,7 @@
|
|||||||
module Language.GraphQL.Encoder
|
module Language.GraphQL.Encoder
|
||||||
( Formatter
|
( Formatter
|
||||||
, definition
|
, definition
|
||||||
|
, directive
|
||||||
, document
|
, document
|
||||||
, minified
|
, minified
|
||||||
, pretty
|
, pretty
|
||||||
@ -162,17 +163,16 @@ fragmentDefinition formatter (FragmentDefinition name tc dirs sels)
|
|||||||
<> eitherFormat formatter " " mempty
|
<> eitherFormat formatter " " mempty
|
||||||
<> selectionSet formatter sels
|
<> selectionSet formatter sels
|
||||||
|
|
||||||
-- * Directives
|
-- * Miscellaneous
|
||||||
|
|
||||||
directives :: Formatter -> Directives -> Text
|
|
||||||
directives formatter@(Pretty _) = Text.Lazy.cons ' ' . spaces (directive formatter)
|
|
||||||
directives Minified = spaces (directive Minified)
|
|
||||||
|
|
||||||
|
-- | Converts a 'Directive' into a string.
|
||||||
directive :: Formatter -> Directive -> Text
|
directive :: Formatter -> Directive -> Text
|
||||||
directive formatter (Directive name args)
|
directive formatter (Directive name args)
|
||||||
= "@" <> Text.Lazy.fromStrict name <> optempty (arguments formatter) args
|
= "@" <> Text.Lazy.fromStrict name <> optempty (arguments formatter) args
|
||||||
|
|
||||||
-- * Miscellaneous
|
directives :: Formatter -> Directives -> Text
|
||||||
|
directives formatter@(Pretty _) = Text.Lazy.cons ' ' . spaces (directive formatter)
|
||||||
|
directives Minified = spaces (directive Minified)
|
||||||
|
|
||||||
-- | Converts a 'Value' into a string.
|
-- | Converts a 'Value' into a string.
|
||||||
value :: Formatter -> Value -> Text
|
value :: Formatter -> Value -> Text
|
||||||
|
Loading…
Reference in New Issue
Block a user