Subject: [bug#55005] [PATCH 08/13] gnu: Add ghc-record-dot-preprocessor

From: Thomas Albers <[email-masked]>
Date: Mon, 18 Apr 2022 20:09:52 +0200

---
 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 4d50437ed4..657eb496a5 100644
--- a/gnu/packages/haskell-xyz.scm
+++ b/gnu/packages/haskell-xyz.scm
@@ -16275,3 +16275,24 @@ (define-public ghc-record-hasfield
 after the implementation of GHC proposal #42, plus some helper functions over
 it.")
     (license license:bsd-3)))
+
+(define-public ghc-record-dot-preprocessor
+  (package
+    (name "ghc-record-dot-preprocessor")
+    (version "0.2.14")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (hackage-uri "record-dot-preprocessor" version))
+       (sha256
+        (base32 "07hq90pk30p14jqk016wchmqrc1qhwa9qajaj90i363g3arcb24p"))))
+    (build-system haskell-build-system)
+    (outputs '("out" "static"))
+    (inputs (list ghc-uniplate ghc-extra))
+    (native-inputs (list ghc-record-hasfield))
+    (home-page "https://github.com/ndmitchell/record-dot-preprocessor")
+    (synopsis "Preprocessor to allow @code{record.field} syntax")
+    (description
+     "Preprocessor to allow the @code{record.field} syntax to access the
+fields of records in Haskell.")
+    (license license:bsd-3)))
-- 
2.35.1