From patchwork Thu Aug 11 13:00:59 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Alice BRENON X-Patchwork-Id: 41564 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 2819727BBEA; Thu, 11 Aug 2022 14:16:07 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.9 required=5.0 tests=BAYES_00,MAILING_LIST_MULTI, SPF_HELO_PASS autolearn=unavailable autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id CC27427BBE9 for ; Thu, 11 Aug 2022 14:16:06 +0100 (BST) Received: from localhost ([::1]:36496 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oM82f-0004A8-Tc for patchwork@mira.cbaines.net; Thu, 11 Aug 2022 09:16:05 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:40462) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oM7p4-0005AK-T3 for guix-patches@gnu.org; Thu, 11 Aug 2022 09:02:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:34050) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oM7p4-00011O-JE for guix-patches@gnu.org; Thu, 11 Aug 2022 09:02:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oM7p4-0005Pj-7T for guix-patches@gnu.org; Thu, 11 Aug 2022 09:02:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#57139] [PATCH] Add package ghc-roman-numerals Resent-From: Alice BRENON Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 11 Aug 2022 13:02:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 57139 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 57139@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.166022287620748 (code B ref -1); Thu, 11 Aug 2022 13:02:02 +0000 Received: (at submit) by debbugs.gnu.org; 11 Aug 2022 13:01:16 +0000 Received: from localhost ([127.0.0.1]:52032 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oM7oJ-0005OZ-Uy for submit@debbugs.gnu.org; Thu, 11 Aug 2022 09:01:16 -0400 Received: from lists.gnu.org ([209.51.188.17]:57774) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oM7oG-0005OM-7q for submit@debbugs.gnu.org; Thu, 11 Aug 2022 09:01:15 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:40162) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oM7oG-0004fa-0J for guix-patches@gnu.org; Thu, 11 Aug 2022 09:01:12 -0400 Received: from lxc-smtp2.ens-lyon.fr ([140.77.167.81]:35938) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oM7o8-0000o1-VC for guix-patches@gnu.org; Thu, 11 Aug 2022 09:01:11 -0400 Received: from localhost (localhost [127.0.0.1]) by lxc-smtp2.ens-lyon.fr (Postfix) with ESMTP id 1FEBDE38B1 for ; Thu, 11 Aug 2022 15:01:00 +0200 (CEST) X-Virus-Scanned: by amavisd-new-2.11.0 (20160426) (Debian) at ens-lyon.fr Received: from lxc-smtp2.ens-lyon.fr ([127.0.0.1]) by localhost (lxc-smtp2.ens-lyon.fr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id E0EP_EQSgDwc for ; Thu, 11 Aug 2022 15:01:00 +0200 (CEST) Received: from localhost (unknown [78.194.167.103]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (Client did not present a certificate) by lxc-smtp2.ens-lyon.fr (Postfix) with ESMTPSA id 0AA38E38AF for ; Thu, 11 Aug 2022 15:01:00 +0200 (CEST) Date: Thu, 11 Aug 2022 15:00:59 +0200 From: Alice BRENON Message-ID: <20220811150059.3e5000cb@ens-lyon.fr> Organization: ENS de Lyon X-Mailer: Claws Mail 4.1.0 (GTK 3.24.30; x86_64-pc-linux-gnu) MIME-Version: 1.0 Received-SPF: pass client-ip=140.77.167.81; envelope-from=alice.brenon@ens-lyon.fr; helo=lxc-smtp2.ens-lyon.fr X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches 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 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 ;;; Copyright © 2020 Carlo Holl ;;; Copyright © 2020 Christine Lemmer-Webber -;;; Copyright © 2021 Alice BRENON +;;; Copyright © 2021, 2022 Alice BRENON ;;; Copyright © 2021 John Kehayias ;;; ;;; 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