guix-commits
[Top][All Lists]
Advanced

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

114/151: gnu: Add ghc-happy.


From: Paul
Subject: 114/151: gnu: Add ghc-happy.
Date: Tue, 20 Oct 2015 15:31:26 +0000

toothbrush pushed a commit to branch wip-haskell-platform-7.10.2-a
in repository guix.

commit a034b26f619e138c7819edd87a8a45aecd819ae9
Author: Paul van der Walt <address@hidden>
Date:   Thu Oct 15 15:53:29 2015 +0200

    gnu: Add ghc-happy.
    
    * gnu/packages/haskell.scm (ghc-happy): New variable.
---
 gnu/packages/haskell.scm |   26 ++++++++++++++++++++++++++
 1 files changed, 26 insertions(+), 0 deletions(-)

diff --git a/gnu/packages/haskell.scm b/gnu/packages/haskell.scm
index 682b038..d374b8d 100644
--- a/gnu/packages/haskell.scm
+++ b/gnu/packages/haskell.scm
@@ -435,6 +435,32 @@ them.")
      "This library provides an easy way to define command line parsers.")
     (license bsd-3)))
 
+(define-public ghc-happy
+  (package
+    (name "ghc-happy")
+    (version "1.19.5")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (string-append
+             "http://hackage.haskell.org/package/happy/happy-";
+             version
+             ".tar.gz"))
+       (sha256
+        (base32
+         "1nj353q4z1g186fpjzf0dnsg71qhxqpamx8jy89rjjvv3p0kmw32"))))
+    (build-system haskell-build-system)
+    (arguments `(#:tests? #f)) ;; cannot satisfy -package mtl.  Possible Cabal
+                               ;; issue.
+    (propagated-inputs
+     `(("ghc-mtl" ,ghc-mtl)))
+    (home-page "https://hackage.haskell.org/package/happy";)
+    (synopsis "Parser generator for Haskell")
+    (description "Happy is a parser generator for Haskell.  Given a grammar
+specification in BNF, Happy generates Haskell code to parse the grammar.
+Happy works in a similar way to the yacc tool for C.")
+    (license bsd-3)))
+
 (define-public ghc-cpphs
   (package
     (name "ghc-cpphs")



reply via email to

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