gnu: Add ghc-newtype-generics.

* gnu/packages/haskell.scm (ghc-newtype-generics): New variable.
This commit is contained in:
Timothy Sample 2018-09-01 00:00:06 -04:00 committed by Ricardo Wurmus
parent 1cf4f2729f
commit 073f5ae1fe
No known key found for this signature in database
GPG Key ID: 197A5888235FACAC
1 changed files with 26 additions and 0 deletions

View File

@ -823,6 +823,32 @@ code pages on Windows. On all other operating systems, the library does
nothing.")
(license license:bsd-3)))
(define-public ghc-newtype-generics
(package
(name "ghc-newtype-generics")
(version "0.5.3")
(source
(origin
(method url-fetch)
(uri (string-append "https://hackage.haskell.org/package/"
"newtype-generics/newtype-generics-"
version ".tar.gz"))
(sha256
(base32
"0igyisw2djg19v9vkna1rwf47k97mvkvk4bbkmswznvbm00z15gj"))))
(build-system haskell-build-system)
(native-inputs
`(("ghc-hspec" ,ghc-hspec)
("hspec-discover" ,hspec-discover)))
(home-page "http://github.com/sjakobi/newtype-generics")
(synopsis "Typeclass and set of functions for working with newtypes")
(description "The @code{Newtype} typeclass represents the packing and
unpacking of a newtype, and allows you to operate under that newtype with
functions such as @code{ala}. Generics support was added in version 0.4,
making this package a full replacement for the original newtype package,
and an alternative to newtype-th.")
(license license:bsd-3)))
(define-public ghc-haddock-library
(package
(name "ghc-haddock-library")