From f30b753835e378cced658a95643b8760eb8d7a1a Mon Sep 17 00:00:00 2001 From: Ricardo Wurmus Date: Mon, 12 Feb 2018 21:28:29 +0100 Subject: [PATCH] gnu: Add ghc-pretty-show. * gnu/packages/haskell.scm (ghc-pretty-show): New variable. --- gnu/packages/haskell.scm | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/gnu/packages/haskell.scm b/gnu/packages/haskell.scm index bd3ebae821..f272049a10 100644 --- a/gnu/packages/haskell.scm +++ b/gnu/packages/haskell.scm @@ -946,6 +946,34 @@ Happy works in a similar way to the yacc tool for C.") "This package provides a fully compliant Haskell 98 lexer.") (license license:bsd-3))) +(define-public ghc-pretty-show + (package + (name "ghc-pretty-show") + (version "1.6.12") + (source + (origin + (method url-fetch) + (uri (string-append "https://hackage.haskell.org/package/pretty-show/" + "pretty-show-" version ".tar.gz")) + (sha256 + (base32 + "1fblcxw4z4ry14brin1mvwccs6hqqlhi7xhwv1f23szjq25cjacn")))) + (build-system haskell-build-system) + (inputs + `(("ghc-haskell-lexer" ,ghc-haskell-lexer) + ("ghc-happy" ,ghc-happy))) + (home-page "http://wiki.github.com/yav/pretty-show") + (synopsis "Tools for working with derived `Show` instances") + (description + "This package provides a library and an executable for working with +derived @code{Show} instances. By using the library, derived @code{Show} +instances can be parsed into a generic data structure. The @code{ppsh} tool +uses the library to produce human-readable versions of @code{Show} instances, +which can be quite handy for debugging Haskell programs. We can also render +complex generic values into an interactive Html page, for easier +examination.") + (license license:expat))) + (define-public ghc-haskell-src-exts (package (name "ghc-haskell-src-exts")