aboutsummaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
authorTimothy Sample <samplet@ngyro.com>2018-08-31 22:41:31 -0400
committerRicardo Wurmus <rekado@elephly.net>2018-10-01 12:12:19 +0200
commit8e06e15b7d5d890b2811a60973ce9e51fc80e606 (patch)
tree27d1cb26bb5de3b41b0d0921a705ad6f18e3b4bd /gnu
parent89d44801696f6d0b5458d30e77412f72a637e61d (diff)
downloadpatches-8e06e15b7d5d890b2811a60973ce9e51fc80e606.tar
patches-8e06e15b7d5d890b2811a60973ce9e51fc80e606.tar.gz
gnu: Add ghc-invariant.
* gnu/packages/haskell.scm (ghc-invariant): New variable.
Diffstat (limited to 'gnu')
-rw-r--r--gnu/packages/haskell.scm37
1 files changed, 37 insertions, 0 deletions
diff --git a/gnu/packages/haskell.scm b/gnu/packages/haskell.scm
index e9dac65588..32b3384c60 100644
--- a/gnu/packages/haskell.scm
+++ b/gnu/packages/haskell.scm
@@ -4730,6 +4730,43 @@ Compatibility package for older packages.")
given term should not exist.")
(license license:bsd-3)))
+(define-public ghc-invariant
+ (package
+ (name "ghc-invariant")
+ (version "0.5.1")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (string-append
+ "https://hackage.haskell.org/package/invariant/invariant-"
+ version ".tar.gz"))
+ (sha256
+ (base32
+ "0aqj7z55632qdg45074kgn9qfdxzb0a2f8lgjzr0l0i4mm2rr37b"))))
+ (build-system haskell-build-system)
+ (inputs
+ `(("ghc-bifunctors" ,ghc-bifunctors)
+ ("ghc-comonad" ,ghc-comonad)
+ ("ghc-contravariant" ,ghc-contravariant)
+ ("ghc-profunctors" ,ghc-profunctors)
+ ("ghc-semigroups" ,ghc-semigroups)
+ ("ghc-statevar" ,ghc-statevar)
+ ("ghc-stm" ,ghc-stm)
+ ("ghc-tagged" ,ghc-tagged)
+ ("ghc-th-abstraction" ,ghc-th-abstraction)
+ ("ghc-transformers-compat" ,ghc-transformers-compat)
+ ("ghc-unordered-containers" ,ghc-unordered-containers)))
+ (native-inputs
+ `(("ghc-hspec" ,ghc-hspec)
+ ("ghc-quickcheck" ,ghc-quickcheck)
+ ("hspec-discover" ,hspec-discover)))
+ (home-page "https://github.com/nfrisby/invariant-functors")
+ (synopsis "Haskell98 invariant functors")
+ (description "Haskell98 invariant functors (also known as exponential
+functors). For more information, see Edward Kmett's article
+@uref{http://comonad.com/reader/2008/rotten-bananas/, Rotten Bananas}.")
+ (license license:bsd-2)))
+
(define-public ghc-kan-extensions
(package
(name "ghc-kan-extensions")