Subject: [bug#64965] [PATCH 2/8] gnu: Add ghc-config-value.

From: Tobias Geerinckx-Rice <[email-masked]>
Date: Sun, 30 Jul 2023 01:59:54 +0200

* gnu/packages/haskell-xyz.scm (ghc-config-value): New public variable.
---
 gnu/packages/haskell-xyz.scm | 27 ++++++++++++++++++++++++++-
 1 file changed, 26 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/haskell-xyz.scm b/gnu/packages/haskell-xyz.scm
index 71df4192dc..0f0b59899f 100644
--- a/gnu/packages/haskell-xyz.scm
+++ b/gnu/packages/haskell-xyz.scm
@@ -12,7 +12,7 @@
 ;;; Copyright © 2017 Peter Mikkelsen <[email-masked]>
 ;;; Copyright © 2017, 2018 Alex Vong <[email-masked]>
 ;;; Copyright © 2017 rsiddharth <[email-masked]>
-;;; Copyright © 2017–2019, 2021 Tobias Geerinckx-Rice <[email-masked]>
+;;; Copyright © 2017–2019, 2021, 2023 Tobias Geerinckx-Rice <[email-masked]>
 ;;; Copyright © 2018 Tonton <[email-masked]>
 ;;; Copyright © 2018, 2019 Timothy Sample <[email-masked]>
 ;;; Copyright © 2018 Arun Isaac <[email-masked]>
@@ -2378,6 +2378,31 @@ (define-public ghc-config-ini
 human-readable error messages when things go wrong.")
     (license license:bsd-3)))
 
+(define-public ghc-config-value
+  (package
+    (name "ghc-config-value")
+    (version "0.8.3")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (hackage-uri "config-value" version))
+       (sha256
+        (base32 "0pkcwxg91wali7986k03d7q940hb078hlsxfknqhkp2spr3d1f3w"))))
+    (build-system haskell-build-system)
+    (arguments
+     `(#:cabal-revision ("3"
+                         "1qiqaad3zpgvwpcb5p1q9aaska82bfm75qrsfdcdlwc70r7w57gj")))
+    (native-inputs
+     (list ghc-alex ghc-happy))
+    (properties '((upstream-name . "config-value")))
+    (home-page "https://github.com/glguy/config-value")
+    (synopsis "Simple, layout-based value language similar to YAML or JSON")
+    (description
+     "This package implements a language similar to YAML or JSON but with fewer
+special cases and fewer dependencies.  It emphasizes layout structure for
+sections and lists, and requires quotes around strings.")
+    (license license:expat)))
+
 (define-public ghc-configurator
   (package
     (name "ghc-configurator")
-- 
2.41.0