From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Bavier Subject: Re: [PATCH 18/43] gnu: ghc-async: New variable. Date: Mon, 19 Oct 2015 09:08:36 -0500 Message-ID: <20151019090836.539cc1a2@openmailbox.org> References: <1444911697-15515-1-git-send-email-paul@denknerd.org> <1444911697-15515-18-git-send-email-paul@denknerd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:38316) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZoFgX-0006E7-Kg for guix-devel@gnu.org; Mon, 19 Oct 2015 15:01:30 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZoFgU-0001ip-BU for guix-devel@gnu.org; Mon, 19 Oct 2015 15:01:29 -0400 Received: from smtp23.openmailbox.org ([62.4.1.57]:36972) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZoFgU-0001iZ-2X for guix-devel@gnu.org; Mon, 19 Oct 2015 15:01:26 -0400 In-Reply-To: <1444911697-15515-18-git-send-email-paul@denknerd.org> List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org To: Paul van der Walt Cc: guix-devel@gnu.org On Thu, 15 Oct 2015 14:21:12 +0200 Paul van der Walt wrote: > * gnu/packages/haskell.scm (ghc-async): New variable. > --- > gnu/packages/haskell.scm | 27 +++++++++++++++++++++++++++ > 1 file changed, 27 insertions(+) > > diff --git a/gnu/packages/haskell.scm b/gnu/packages/haskell.scm > index e7476e4..cb2af0a 100644 > --- a/gnu/packages/haskell.scm > +++ b/gnu/packages/haskell.scm > @@ -1239,4 +1239,31 @@ lets you set up HTTP connections, transmitting requests and processing the > responses coming back.") > (license bsd-3))) > > +(define-public ghc-async > + (package > + (name "ghc-async") > + (version "2.0.2") > + (source > + (origin > + (method url-fetch) > + (uri (string-append > + "http://hackage.haskell.org/package/async/async-" > + version > + ".tar.gz")) > + (sha256 > + (base32 > + "0azx4qk65a9a2gvqsfmz3w89m6shzr2iz0i5lly2zvly4n2d6m6v")))) > + (build-system haskell-build-system) > + (arguments `(#:tests? #f)) ; FIXME: testing libraries are missing. If this is the case, can the "ghc-hunit" input be left out? > + (propagated-inputs > + `(("ghc-stm" ,ghc-stm))) > + (inputs > + `(("ghc-hunit" ,ghc-hunit))) > + (home-page "https://github.com/simonmar/async") > + (synopsis "Run IO operations asynchronously and wait for their results") > + (description "Higher-level interface over threads in Haskell, in which > +Async a is a concurrent thread that will eventually deliver a value of type > +a.") The first sentence here is a fragment. Also, I believe our new texinfo support could come in handy here (and in other haskell packages, as they seem to like including code fragments): "This package provides a higher-level interface over threads in Haskell, in which @code{Async a} is a concurrent thread that will eventually deliver a value of type @code{a}." `~Eric