Subject: [bug#50835] [PATCH v2 20/24] gnu: Add ghc-formatting.

From: Stephen Paul Weber <[email-masked]>
Date: Thu, 13 Jan 2022 21:45:42 -0500

* gnu/packages/haskell-xyz.scm (ghc-formatting): New variable.
---
 gnu/packages/haskell-xyz.scm | 21 +++++++++++++++++++++
 1 file changed, 21 insertions(+)

diff --git a/gnu/packages/haskell-xyz.scm b/gnu/packages/haskell-xyz.scm
index 93b81f19de..7ad9c3eabd 100644
--- a/gnu/packages/haskell-xyz.scm
+++ b/gnu/packages/haskell-xyz.scm
@@ -16537,3 +16537,24 @@ like endianness and architecture.")
 codecs according to RFC4648, extended to support z-base32 encoding according to
 https://gist.github.com/maaku/8996338#file-bip-ecc32-mediawiki.")
     (license license:bsd-3)))
+
+(define-public ghc-formatting
+  (package
+    (name "ghc-formatting")
+    (version "7.1.3")
+    (source
+      (origin
+        (method url-fetch)
+        (uri (hackage-uri "formatting" version))
+        (sha256
+          (base32 "1vrc2i1b6lxx2aq5hysfl3gl6miq2wbhxc384axvgrkqjbibnqc0"))))
+    (build-system haskell-build-system)
+    (inputs
+      (list ghc-clock ghc-old-locale ghc-scientific ghc-double-conversion))
+    (native-inputs (list ghc-hspec))
+    (home-page "https://github.com/AJChapman/formatting")
+    (synopsis
+      "Combinator-based type-safe formatting (like printf() or FORMAT)")
+    (description
+      "Formatting implements combinator-based type-safe formatting.")
+    (license license:bsd-3)))
-- 
2.30.2