[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
14/17: gnu: Add ghc-these.
From: |
guix-commits |
Subject: |
14/17: gnu: Add ghc-these. |
Date: |
Fri, 8 May 2020 05:09:15 -0400 (EDT) |
cbaines pushed a commit to branch master
in repository guix.
commit 20c440ea046ed809009fc189cfc03833ae9eb8ea
Author: John Soo <address@hidden>
AuthorDate: Fri Dec 13 08:45:42 2019 -0800
gnu: Add ghc-these.
* gnu/packages/haskell-xyz.scm (ghc-these): New variable.
Signed-off-by: Christopher Baines <address@hidden>
---
gnu/packages/haskell-xyz.scm | 57 ++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 57 insertions(+)
diff --git a/gnu/packages/haskell-xyz.scm b/gnu/packages/haskell-xyz.scm
index a54abd4..51e447f 100644
--- a/gnu/packages/haskell-xyz.scm
+++ b/gnu/packages/haskell-xyz.scm
@@ -12000,6 +12000,63 @@ and @code{Eq} instances. These instances used to live
in the haskell-src-meta
package, and that's where the version number started.")
(license license:bsd-3)))
+(define-public ghc-these
+ (package
+ (name "ghc-these")
+ (version "1.0.1")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (string-append
+ "https://hackage.haskell.org/package/these/these-"
+ version
+ ".tar.gz"))
+ (sha256
+ (base32
+ "1k0pi65g7cm9hzdw6my6bzz2zvddkmj1qs45ymqmi316bpiixk3r"))))
+ (build-system haskell-build-system)
+ (inputs
+ `(("ghc-base-compat" ,ghc-base-compat)
+ ("ghc-hashable" ,ghc-hashable)
+ ("ghc-aeson" ,ghc-aeson)
+ ("ghc-unordered-containers" ,ghc-unordered-containers)
+ ("ghc-assoc" ,ghc-assoc)
+ ("ghc-semigroupoids" ,ghc-semigroupoids)
+ ("ghc-quickcheck" ,ghc-quickcheck)))
+ (arguments
+ `(#:cabal-revision
+ ("1"
+ "0923r86fnmgpx0msm68aszirh2n19nn5bccgjxfh2146jw4z7w3z")))
+ (home-page
+ "https://github.com/isomorphism/these")
+ (synopsis "Either-or-both data type")
+ (description
+ "This package provides a data type @code{These a b} which can
+hold a value of either type or values of each type. This is usually
+thought of as an \"inclusive or\" type (contrasting @code{Either a b} as
+\"exclusive or\") or as an \"outer join\" type (contrasting @code{(a, b)}
+as \"inner join\").
+
+@code{data These a b = This a | That b | These a b}
+
+Since version 1, this package was split into parts:
+
+@itemize
+@item
+https://hackage.haskell.org/package/semialign For @code{Align} and
+@code{Zip} type-classes.
+@item
+https://hackage.haskell.org/package/semialign-indexed For
+@code{SemialignWithIndex} class, providing @code{ialignWith} and
+@code{izipWith}
+@item
+https://hackage.haskell.org/package/these-lens For lens combinators.
+@item
+http://hackage.haskell.org/package/monad-chronicle For transformers
+variant of @code{These}.
+@end itemize")
+ (license license:bsd-3)))
+
(define-public ghc-threads
(package
(name "ghc-threads")
- 01/17: gnu: Add ghc-utf8-light., (continued)
- 01/17: gnu: Add ghc-utf8-light., guix-commits, 2020/05/08
- 05/17: gnu: Add ghc-wai-websockets., guix-commits, 2020/05/08
- 06/17: gnu: Add ghc-sourcemap., guix-commits, 2020/05/08
- 07/17: gnu: Add ghc-mtl-compat., guix-commits, 2020/05/08
- 03/17: gnu: Add ghc-tasty-hspec., guix-commits, 2020/05/08
- 08/17: gnu: Add ghc-protolude., guix-commits, 2020/05/08
- 09/17: gnu: Add ghc-pattern-arrows., guix-commits, 2020/05/08
- 10/17: gnu: Add ghc-language-javascript., guix-commits, 2020/05/08
- 11/17: gnu: Add ghc-bower-json., guix-commits, 2020/05/08
- 13/17: gnu: Add ghc-assoc., guix-commits, 2020/05/08
- 14/17: gnu: Add ghc-these.,
guix-commits <=
- 16/17: gnu: Add ghc-happy@1.19.9, guix-commits, 2020/05/08
- 04/17: gnu: Add ghc-websockets., guix-commits, 2020/05/08
- 15/17: gnu: Add ghc-semialign., guix-commits, 2020/05/08
- 17/17: gnu: Add purescript., guix-commits, 2020/05/08
- 12/17: gnu: Add ghc-aeson-better-errors., guix-commits, 2020/05/08