From mboxrd@z Thu Jan 1 00:00:00 1970 From: ericbavier@openmailbox.org Subject: Re: [PATCH] gnu: Add ghc-free. Date: Wed, 21 Oct 2015 22:32:37 -0500 Message-ID: <1445484780-25990-3-git-send-email-ericbavier@openmailbox.org> References: <1445483479-19104-1-git-send-email-ericbavier@openmailbox.org> <1445484780-25990-1-git-send-email-ericbavier@openmailbox.org> Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:39804) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZpBDF-0003gC-NK for guix-devel@gnu.org; Thu, 22 Oct 2015 04:27:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZpBDB-0004mf-LK for guix-devel@gnu.org; Thu, 22 Oct 2015 04:27:05 -0400 Received: from smtp11.openmailbox.org ([62.4.1.45]:37520) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZpBDB-0004mV-F0 for guix-devel@gnu.org; Thu, 22 Oct 2015 04:27:01 -0400 In-Reply-To: <1445484780-25990-1-git-send-email-ericbavier@openmailbox.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: guix-devel@gnu.org, Paul van der Walt From: Eric Bavier > * gnu/packages/haskell.scm (ghc-free): New variable. > --- > gnu/packages/haskell.scm | 37 +++++++++++++++++++++++++++++++++++++ > 1 file changed, 37 insertions(+) > > diff --git a/gnu/packages/haskell.scm b/gnu/packages/haskell.scm > index 729deb3..d280172 100644 > --- a/gnu/packages/haskell.scm > +++ b/gnu/packages/haskell.scm > @@ -3262,6 +3262,43 @@ where every element did not have to have an inverse, thus the name > semigroup.") > (license bsd-3))) > > +(define-public ghc-free > + (package > + (name "ghc-free") > + (version "4.12.1") > + (source > + (origin > + (method url-fetch) > + (uri (string-append > + "http://hackage.haskell.org/package/free/free-" > + version > + ".tar.gz")) > + (sha256 > + (base32 > + "0sr8phvrb4ny8j1wzq55rdn8q4br23q4pw2j276npr844825jr9p")))) > + (build-system haskell-build-system) > + (propagated-inputs > + `(("ghc-prelude-extras" ,ghc-prelude-extras) > + ("ghc-profunctors" ,ghc-profunctors) > + ("ghc-exceptions" ,ghc-exceptions))) > + (inputs > + `(("ghc-bifunctors" ,ghc-bifunctors) > + ("ghc-comonad" ,ghc-comonad) > + ("ghc-distributive" ,ghc-distributive) > + ("ghc-mtl" ,ghc-mtl) > + ("ghc-semigroupoids" ,ghc-semigroupoids) > + ("ghc-semigroups" ,ghc-semigroups))) > + (home-page "http://github.com/ekmett/free/") > + (synopsis "Monads for free") How about: "Unrestricted monads for Haskell" `~Eric > + (description "This library provides free monads, which are useful for many > +tree-like structures and domain specific languages. If @code{f} is a > +@code{Functor} then the free @code{Monad} on @code{f} is the type of trees > +whose nodes are labeled with the constructors of @code{f}. The word \"free\" > +is used in the sense of \"unrestricted\" rather than \"zero-cost\": @code{Free > +f} makes no constraining assumptions beyond those given by @code{f} and the > +definition of @code{Monad}.") > + (license bsd-3))) > + > (define-public ghc-fast-logger > (package > (name "ghc-fast-logger") > -- > 2.5.0 >