Subject: bug#57862: closed (Re: [bug#57862] [PATCHES] Add package ghc-hxt-xpath)

From: [email-masked] (GNU bug Tracking System)
Date: Sat, 08 Oct 2022 11:10:02 +0000

Your bug report

#57862: [PATCHES] Add package ghc-hxt-xpath

which was filed against the guix-patches package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to [email-masked].

-- 
57862: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=57862
GNU Bug Tracking System
Contact [email-masked] with problems

Subject: Re: [bug#57862] [PATCHES] Add package ghc-hxt-xpath
From: Christopher Baines <[email-masked]>
To: Alice BRENON <[email-masked]>
Cc: [email-masked]
Date: Sat, 08 Oct 2022 12:07:55 +0100
List-Id: <debbugs-submit.debbugs.gnu.org>

Alice BRENON <[email-masked]> writes:

> I use the little time required to fix the display between two talks of
> the 10 years anniversary to submit this proposal for a new haskell
> package. It's an extension of the HXT library for XML made to handle
> XPaths.

Thanks Alice, I've pushed this to master as
14afaa5381b1185bf9e3701ff09c5bab12dacfab.

Chris

Subject: [PATCHES] Add package ghc-hxt-xpath
From: Alice BRENON <[email-masked]>
To: [email-masked]
Date: Fri, 16 Sep 2022 15:58:35 +0200
List-Id: <debbugs-submit.debbugs.gnu.org>

Hi guix,

I use the little time required to fix the display between two talks of
the 10 years anniversary to submit this proposal for a new haskell
package. It's an extension of the HXT library for XML made to handle
XPaths.

Happy birthday Guix !!

Alice
From 9efbd82e9c566a6523dc54356dd4981fe6fac789 Mon Sep 17 00:00:00 2001
From: Alice BRENON <[email-masked]>
Date: Tue, 13 Sep 2022 17:35:20 +0200
Subject: [PATCH] gnu: Add ghc-hxt-xpath.

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

diff --git a/gnu/packages/haskell-web.scm b/gnu/packages/haskell-web.scm
index 1c2538b45e..0e82d65e27 100644
--- a/gnu/packages/haskell-web.scm
+++ b/gnu/packages/haskell-web.scm
@@ -12,6 +12,7 @@
 ;;; Copyright © 2020, 2022 Kyle Meyer <[email-masked]>
 ;;; Copyright © 2020 Alexandru-Sergiu Marton <[email-masked]>
 ;;; Copyright © 2020 Giacomo Leidi <[email-masked]>
+;;; Copyright © 2022 Alice Brenon <[email-masked]>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -1541,6 +1542,26 @@ (define-public ghc-hxt
 introduces a more general approach for processing XML with Haskell.")
     (license license:expat)))
 
+(define-public ghc-hxt-xpath
+  (package
+    (name "ghc-hxt-xpath")
+    (version "9.1.2.2")
+    (source (origin
+              (method url-fetch)
+              (uri (hackage-uri "hxt-xpath" version))
+              (sha256
+               (base32
+                "0wlq9s01icalnvjkkilx5zaqp3ff4v5limj1xy8i18qpzjspqdsh"))))
+    (build-system haskell-build-system)
+    (inputs (list ghc-hxt))
+    (home-page "https://github.com/UweSchmidt/hxt")
+    (synopsis "The XPath modules for HXT.")
+    (description
+     "This extension for the Haskell XML Toolbox defines data types to
+represent XPath, navigation trees and primitives to select and edit subtrees
+from them.  Some primitives have both a functional and an arrow interface.")
+    (license license:expat)))
+
 (define-public ghc-http-common
   (package
     (name "ghc-http-common")
-- 
2.37.2