guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

40/177: gnu: Add ghc-pretty-show.


From: Ricardo Wurmus
Subject: 40/177: gnu: Add ghc-pretty-show.
Date: Tue, 13 Feb 2018 07:38:08 -0500 (EST)

rekado pushed a commit to branch master
in repository guix.

commit f30b753835e378cced658a95643b8760eb8d7a1a
Author: Ricardo Wurmus <address@hidden>
Date:   Mon Feb 12 21:28:29 2018 +0100

    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 bd3ebae..f272049 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")



reply via email to

[Prev in Thread] Current Thread [Next in Thread]