Subject: bug#38900: closed (Re: [bug#38900] [PATCH v2] gnu: Add ghc-scalpel.)

From: [email-masked] (GNU bug Tracking System)
Date: Thu, 30 Jan 2020 21:01:02 +0000

Your bug report

#38900: [PATCH] gnu: Add ghc-scalpel.

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].

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

Subject: Re: [bug#38900] [PATCH v2] gnu: Add ghc-scalpel.
From: Efraim Flashner <[email-masked]>
To: Alexandru-Sergiu Marton <[email-masked]>
Cc: [email-masked]
Date: Thu, 30 Jan 2020 22:59:29 +0200
List-Id: <debbugs-submit.debbugs.gnu.org>

Thanks. Patch oushed.

-- 
Efraim Flashner   <[email-masked]>   אפרים פלשנר
GPG key = A28B F40C 3E55 1372 662D  14F7 41AA E7DC CA3D 8351
Confidentiality cannot be guaranteed on emails sent or received unencrypted

Subject: [PATCH] gnu: Add ghc-scalpel.
From: Alexandru-Sergiu Marton <[email-masked]>
To: [email-masked]
Cc: Alexandru-Sergiu Marton <[email-masked]>
Date: Fri, 3 Jan 2020 18:32:47 +0200
List-Id: <debbugs-submit.debbugs.gnu.org>

* gnu/packages/haskell-web.scm (ghc-scalpel): New variable.
---
Depends on 38899 (ghc-scalpel-core).

 gnu/packages/haskell-web.scm | 30 ++++++++++++++++++++++++++++++
 1 file changed, 30 insertions(+)

diff --git a/gnu/packages/haskell-web.scm b/gnu/packages/haskell-web.scm
index cbdf7f94a3..f8aa918100 100644
--- a/gnu/packages/haskell-web.scm
+++ b/gnu/packages/haskell-web.scm
@@ -1627,3 +1627,33 @@ cookies, serving files, and more.")
 that is intended to have lightweight dependencies and to be free of all
 non-Haskell dependencies.")
     (license license:asl2.0)))
+
+(define-public ghc-scalpel
+  (package
+    (name "ghc-scalpel")
+    (version "0.6.0")
+    (source
+      (origin
+        (method url-fetch)
+        (uri (string-append
+              "https://hackage.haskell.org/package/scalpel/"
+              "scalpel-" version ".tar.gz"))
+        (sha256
+          (base32
+            "0jbrfcgljl8kbcwi2zqx1jp3c3dpxrkc94za44x56kcz68n89hlz"))))
+    (build-system haskell-build-system)
+    (inputs
+      `(("ghc-scalpel-core" ,ghc-scalpel-core)
+        ("ghc-case-insensitive" ,ghc-case-insensitive)
+        ("ghc-data-default" ,ghc-data-default)
+        ("ghc-http-client" ,ghc-http-client)
+        ("ghc-http-client-tls" ,ghc-http-client-tls)
+        ("ghc-tagsoup" ,ghc-tagsoup)))
+    (home-page "https://github.com/fimad/scalpel")
+    (synopsis
+      "A high level web scraping library for Haskell.")
+    (description
+      "Scalpel is a web scraping library inspired by libraries like Parsec
+and Perl's Web::Scraper Scalpel builds on top of TagSoup to provide a
+declarative and monadic interface.")
+    (license license:asl2.0)))
-- 
2.24.1