From 116d469d9f4b1baf128a9a42c8fdac3fbeb79449 Mon Sep 17 00:00:00 2001 From: Eugen Wissner Date: Sat, 26 Sep 2026 20:29:43 +0200 Subject: Fix endless recursion in Input Show instance --- CHANGELOG.md | 6 ++++-- graphql.cabal | 2 +- src/Language/GraphQL/Execute/Transform.hs | 2 +- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8c3a0da..e432d44 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,7 +6,9 @@ The format is based on and this project adheres to [Haskell Package Versioning Policy](https://pvp.haskell.org/). -## [Unreleased] +## [1.5.0.3] - 2026-09-26 +## Fixed +- Fix endless recursion in Input Show instance. ## [1.5.0.2] - 2026-01-08 ### Fixed @@ -557,7 +559,7 @@ and this project adheres to ### Added - Data types for the GraphQL language. -[Unreleased]: https://git.caraus.tech/OSS/graphql/compare/v1.5.0.2...master +[1.5.0.3]: https://git.caraus.tech/OSS/graphql/compare/v1.5.0.2...v1.5.0.3 [1.5.0.2]: https://git.caraus.tech/OSS/graphql/compare/v1.5.0.1...v1.5.0.2 [1.5.0.1]: https://git.caraus.tech/OSS/graphql/compare/v1.5.0.0...v1.5.0.1 [1.5.0.0]: https://git.caraus.tech/OSS/graphql/compare/v1.4.0.0...v1.5.0.0 diff --git a/graphql.cabal b/graphql.cabal index cafc33a..a691238 100644 --- a/graphql.cabal +++ b/graphql.cabal @@ -1,7 +1,7 @@ cabal-version: 3.0 name: graphql -version: 1.5.0.2 +version: 1.5.0.3 synopsis: Haskell GraphQL implementation description: Haskell implementation. category: Language diff --git a/src/Language/GraphQL/Execute/Transform.hs b/src/Language/GraphQL/Execute/Transform.hs index 79de094..e3d14a6 100644 --- a/src/Language/GraphQL/Execute/Transform.hs +++ b/src/Language/GraphQL/Execute/Transform.hs @@ -143,7 +143,7 @@ instance Show Input where where showObject key value accumulator = concat [Text.unpack key, ": ", show value] : accumulator - show variableValue = show variableValue + show (Variable variableValue) = show variableValue -- | Extracts operations and fragment definitions of the document. document :: Full.Document -- cgit v1.2.3