Subject: [PATCH] Add package ghc-roman-numerals

From: Alice BRENON <[email-masked]>
Date: Thu, 11 Aug 2022 15:00:59 +0200

Hello guix,

Here is a new haskell package useful to play with roman numerals. The
package's synopsis and description from the hackage import seemed
complete enough, I left them as they were and only applied styling with
the 'format' rule.

Best regards,

Alice
From 564b33c77d1cc00c9bb82729ac6e5abfa3fd1c81 Mon Sep 17 00:00:00 2001
From: Alice BRENON <[email-masked]>
Date: Thu, 11 Aug 2022 14:29:44 +0200
Subject: [PATCH] gnu: Add ghc-roman-numerals.

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

diff --git a/gnu/packages/haskell-xyz.scm b/gnu/packages/haskell-xyz.scm
index 0ce47e0902..35eab3028f 100644
--- a/gnu/packages/haskell-xyz.scm
+++ b/gnu/packages/haskell-xyz.scm
@@ -28,7 +28,7 @@
 ;;; Copyright © 2020 Alexandru-Sergiu Marton <[email-masked]>
 ;;; Copyright © 2020 Carlo Holl <[email-masked]>
 ;;; Copyright © 2020 Christine Lemmer-Webber <[email-masked]>
-;;; Copyright © 2021 Alice BRENON <[email-masked]>
+;;; Copyright © 2021, 2022 Alice BRENON <[email-masked]>
 ;;; Copyright © 2021 John Kehayias <[email-masked]>
 ;;;
 ;;; This file is part of GNU Guix.
@@ -16105,3 +16105,23 @@ (define-public ghc-singleton-bool
      "This package provides Type-level booleans.")
     (license license:bsd-3)))
 
+(define-public ghc-roman-numerals
+  (package
+    (name "ghc-roman-numerals")
+    (version "0.5.1.5")
+    (source (origin
+              (method url-fetch)
+              (uri (hackage-uri "roman-numerals" version))
+              (sha256
+               (base32
+                "10da5vls9l5i255bapms4b2r7dnwmxgsaa1cdll2lrmid5dikixr"))))
+    (build-system haskell-build-system)
+    (inputs (list ghc-base-unicode-symbols))
+    (home-page "https://github.com/roelvandijk/roman-numerals")
+    (synopsis "Parsing and pretty printing of Roman numerals")
+    (description
+     "This library provides functions for parsing and pretty printing Roman numerals.
+Because the notation of Roman numerals has varied through the centuries this
+package allows for some customisation using a configuration that is passed to
+the conversion functions.")
+    (license license:bsd-3)))
-- 
2.37.1