From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:46949) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eyUiR-0007ms-QW for guix-patches@gnu.org; Tue, 20 Mar 2018 23:47:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eyUiP-0003gc-L3 for guix-patches@gnu.org; Tue, 20 Mar 2018 23:47:07 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:36760) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eyUiP-0003gT-Gx for guix-patches@gnu.org; Tue, 20 Mar 2018 23:47:05 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1eyUiP-0006ZT-Aj for guix-patches@gnu.org; Tue, 20 Mar 2018 23:47:05 -0400 Subject: [bug#30892] [PATCH 22/37] gnu: Add ghc-http-api-data. Resent-Message-ID: From: rsiddharth Date: Wed, 21 Mar 2018 03:45:00 +0000 Message-Id: <20180321034515.3664-23-s@ricketyspace.net> In-Reply-To: <20180321034005.2975-1-s@ricketyspace.net> References: <20180321034005.2975-1-s@ricketyspace.net> 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: 30892@debbugs.gnu.org Cc: rsiddharth * gnu/packages/haskell.scm (ghc-http-api-data): New variable. --- gnu/packages/haskell.scm | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/gnu/packages/haskell.scm b/gnu/packages/haskell.scm index 72813a00a..44a5664c0 100644 --- a/gnu/packages/haskell.scm +++ b/gnu/packages/haskell.scm @@ -9314,4 +9314,35 @@ parser that uses ByteStrings for parsing and representing the URI data.") TimeLocale.") (license license:bsd-3))) +(define-public ghc-http-api-data + (package + (name "ghc-http-api-data") + (version "0.3.7.1") + (source + (origin + (method url-fetch) + (uri (string-append "https://hackage.haskell.org/package/" + "http-api-data-" version "/" + "http-api-data-" version ".tar.gz")) + (sha256 + (base32 + "1zbmf0kkfsw7pfznisi205gh7jd284gfarxsyiavd2iw26akwqwc")))) + (build-system haskell-build-system) + (arguments `(#:tests? #f)) ; FIXME: Tests require QuickCheck >= 2.9 + (inputs `(("ghc-attoparsec" ,ghc-attoparsec) + ("ghc-attoparsec-iso8601" ,ghc-attoparsec-iso8601) + ("ghc-hashable" ,ghc-hashable) + ("ghc-http-types" ,ghc-http-types) + ("ghc-text" ,ghc-text) + ("ghc-time-locale-compat" ,ghc-time-locale-compat) + ("ghc-unordered-containers" ,ghc-unordered-containers) + ("ghc-uri-bytestring" ,ghc-uri-bytestring) + ("ghc-uuid-types" ,ghc-uuid-types))) + (home-page "https://github.com/fizruk/http-api-data") + (synopsis "Convert to/from HTTP API data like URL pieces, headers and +query parameters") + (description "This Haskell package defines typeclasses used for converting +Haskell data types to and from HTTP API data.") + (license license:bsd-3))) + ;;; haskell.scm ends here -- 2.16.2