From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:470:142:3::10]:44095) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1inPsl-0001QX-AC for guix-patches@gnu.org; Fri, 03 Jan 2020 11:33:04 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1inPsk-00073h-1j for guix-patches@gnu.org; Fri, 03 Jan 2020 11:33:03 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:35366) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1inPsj-00072d-TF for guix-patches@gnu.org; Fri, 03 Jan 2020 11:33:01 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1inPsj-0006jO-Qz for guix-patches@gnu.org; Fri, 03 Jan 2020 11:33:01 -0500 Subject: [bug#38900] [PATCH] gnu: Add ghc-scalpel. Resent-Message-ID: Received: from eggs.gnu.org ([2001:470:142:3::10]:42827) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1inPsA-00012R-Am for guix-patches@gnu.org; Fri, 03 Jan 2020 11:32:27 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1inPs9-0004Wp-62 for guix-patches@gnu.org; Fri, 03 Jan 2020 11:32:26 -0500 Received: from mail-wm1-x32c.google.com ([2a00:1450:4864:20::32c]:51266) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1inPs8-0004Qn-Rr for guix-patches@gnu.org; Fri, 03 Jan 2020 11:32:25 -0500 Received: by mail-wm1-x32c.google.com with SMTP id d73so8876447wmd.1 for ; Fri, 03 Jan 2020 08:32:24 -0800 (PST) From: Alexandru-Sergiu Marton Date: Fri, 3 Jan 2020 18:32:47 +0200 Message-Id: <20200103163247.5246-1-brown121407@member.fsf.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: 38900@debbugs.gnu.org Cc: Alexandru-Sergiu Marton * 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