From mboxrd@z Thu Jan 1 00:00:00 1970 From: ericbavier@openmailbox.org Subject: Re: [PATCH] gnu: Add ghc-semigroupoids. Date: Thu, 22 Oct 2015 03:47:42 -0500 Message-ID: <1445503671-30014-14-git-send-email-ericbavier@openmailbox.org> References: <1445483479-19104-1-git-send-email-ericbavier@openmailbox.org> <1445503671-30014-1-git-send-email-ericbavier@openmailbox.org> Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:52249) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZpG87-0003zs-Ra for guix-devel@gnu.org; Thu, 22 Oct 2015 09:42:13 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZpG84-000838-8h for guix-devel@gnu.org; Thu, 22 Oct 2015 09:42:07 -0400 Received: from smtp14.openmailbox.org ([62.4.1.48]:58763) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZpG84-00082y-33 for guix-devel@gnu.org; Thu, 22 Oct 2015 09:42:04 -0400 In-Reply-To: <1445503671-30014-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-semigroupoids): New variable. > --- > gnu/packages/haskell.scm | 39 +++++++++++++++++++++++++++++++++++++++ > 1 file changed, 39 insertions(+) > > diff --git a/gnu/packages/haskell.scm b/gnu/packages/haskell.scm > index 9b1c4cb..c6b092b 100644 > --- a/gnu/packages/haskell.scm > +++ b/gnu/packages/haskell.scm > @@ -3087,6 +3087,45 @@ are implemented as FFI bindings to efficient code from zlib.") > (description "This package provides bifunctors for Haskell.") > (license bsd-3))) > > +(define-public ghc-semigroupoids > + (package > + (name "ghc-semigroupoids") > + (version "5.0.0.4") > + (source > + (origin > + (method url-fetch) > + (uri (string-append > + "http://hackage.haskell.org/package/semigroupoids/semigroupoids-" > + version > + ".tar.gz")) > + (sha256 > + (base32 > + "1jf7jnfhdvl6p18wdr21yi2fim1xb8alcn6szhrdswj0dkilgq6d")))) > + (build-system haskell-build-system) > + (propagated-inputs > + `(("ghc-base-orphans" ,ghc-base-orphans) > + ("ghc-transformers-compat" ,ghc-transformers-compat) > + ("ghc-bifunctors" ,ghc-bifunctors) > + ("ghc-comonad" ,ghc-comonad) > + ("ghc-contravariant" ,ghc-contravariant) > + ("ghc-distributive" ,ghc-distributive))) > + (arguments `(#:tests? #f)) ; FIXME: test framework unavailable > + (inputs > + `(("ghc-semigroups" ,ghc-semigroups) > + ("ghc-tagged" ,ghc-tagged) > + ("ghc-doctest" ,ghc-doctest))) > + (home-page "http://github.com/ekmett/semigroupoids") > + (synopsis "Semigroupoids: Category sans id") How about: "Semigroupoid operations for Haskell" `~Eric > + (description "This library provides a wide array of (semi)groupoids and > +operations for working with them. A @code{Semigroupoid} is a @code{Category} > +without the requirement of identity arrows for every object in the category. > +A @code{Category} is any @code{Semigroupoid} for which the Yoneda lemma holds. > +Finally, to work with these weaker structures it is beneficial to have > +containers that can provide stronger guarantees about their contents, so > +versions of @code{Traversable} and @code{Foldable} that can be folded with > +just a @code{Semigroup} are added.") > + (license bsd-3))) > + > (define-public ghc-contravariant > (package > (name "ghc-contravariant") > -- > 2.5.0 >