From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:470:142:3::10]:47102) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hmywp-0004dq-Un for guix-patches@gnu.org; Mon, 15 Jul 2019 07:15:13 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hmywo-0002Ok-04 for guix-patches@gnu.org; Mon, 15 Jul 2019 07:15:11 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:37846) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hmywm-0002Mf-SS for guix-patches@gnu.org; Mon, 15 Jul 2019 07:15:09 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hmywm-0003Q7-LO for guix-patches@gnu.org; Mon, 15 Jul 2019 07:15:08 -0400 Subject: [bug#36663] [PATCH 03/14] gnu: Add ghc-http-streams Resent-Message-ID: From: Robert Vollmert Date: Mon, 15 Jul 2019 13:14:01 +0200 Message-Id: <20190715111412.74324-3-rob@vllmrt.net> In-Reply-To: <20190715111412.74324-1-rob@vllmrt.net> References: <20190715111412.74324-1-rob@vllmrt.net> 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: 36663@debbugs.gnu.org Cc: Robert Vollmert * gnu/packages/haskell-web.scm (ghc-http-streams): New filed. --- gnu/packages/haskell-web.scm | 41 ++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) diff --git a/gnu/packages/haskell-web.scm b/gnu/packages/haskell-web.scm index beee4e00ac..f0ba23ce2e 100644 --- a/gnu/packages/haskell-web.scm +++ b/gnu/packages/haskell-web.scm @@ -1415,3 +1415,44 @@ Haskell. Together with the snap-core library upon which it depends, it provides a clean and efficient Haskell programming interface to the HTTP protocol.") (license license:bsd-3))) + +(define-public ghc-http-streams + (package + (name "ghc-http-streams") + (version "0.8.6.1") + (source + (origin + (method url-fetch) + (uri (string-append + "https://hackage.haskell.org/package/http-streams/http-streams-" + version + ".tar.gz")) + (sha256 + (base32 + "18vxd35n7s3z4gjvad94bknc8z1w9d7ccgphnhsxlz5cackizmxq")))) + (build-system haskell-build-system) + (inputs + `(("ghc-attoparsec" ,ghc-attoparsec) + ("ghc-base64-bytestring" ,ghc-base64-bytestring) + ("ghc-blaze-builder" ,ghc-blaze-builder) + ("ghc-case-insensitive" ,ghc-case-insensitive) + ("ghc-io-streams" ,ghc-io-streams) + ("ghc-hsopenssl" ,ghc-hsopenssl) + ("ghc-openssl-streams" ,ghc-openssl-streams) + ("ghc-unordered-containers" + ,ghc-unordered-containers) + ("ghc-aeson" ,ghc-aeson) + ("ghc-http-common" ,ghc-http-common) + ("ghc-network-uri" ,ghc-network-uri) + ("ghc-network" ,ghc-network))) + (arguments + `(#:tests? #f)) ; tests rely on an outdated versio of snap-server + (home-page + "https://github.com/afcowie/http-streams/") + (synopsis "HTTP client using io-streams") + (description + "An HTTP client, using the Snap Framework's io-streams +library to hande the streaming IO. The API is optimized for ease of use +for the rather common case of code needing to query web services and deal +with the result.") + (license license:bsd-3))) -- 2.20.1 (Apple Git-117)