From 9fa27c367951ae086e06aba08bf35872b2657f6e Mon Sep 17 00:00:00 2001 From: Brian Leung Date: Thu, 20 Jun 2019 07:55:34 +0200 Subject: [PATCH 1/7] gnu: Add ghc-validity. * gnu/packages/haskell.scm (ghc-validity): New variable. --- gnu/packages/haskell.scm | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/gnu/packages/haskell.scm b/gnu/packages/haskell.scm index cfbd3bfb76..f4d7e5bc4e 100644 --- a/gnu/packages/haskell.scm +++ b/gnu/packages/haskell.scm @@ -11537,6 +11537,32 @@ stand for certain ASCII character sequences, i.e. → instead of @code{->}, ∀ instead of @code{forall} and many others.") (license license:bsd-3))) +(define-public ghc-validity + (package + (name "ghc-validity") + (version "0.9.0.1") + (source + (origin + (method url-fetch) + (uri (string-append + "https://hackage.haskell.org/package/validity/validity-" + version + ".tar.gz")) + (sha256 + (base32 + "112wchq5l39fi9bkfkljic7bh1rd5gvz4lwjjw9pajg0zj51pyib")))) + (build-system haskell-build-system) + (native-inputs `(("ghc-hspec" ,ghc-hspec) + ("hspec-discover" ,hspec-discover))) + (home-page + "https://github.com/NorfairKing/validity") + (synopsis "Validity typeclass") + (description + "Values of custom types usually have invariants imposed upon them. This +package provides the @code{Validity} type class, which makes these invariants +explicit by providing a function to check whether the invariants hold.") + (license license:expat))) + (define-public ghc-stylish-haskell (package (name "ghc-stylish-haskell") -- 2.22.0