Subject: [bug#49946] [PATCH v7 15/32] gnu: Add tree-sitter-haskell.

From: Pierre Langlois <[email-masked]>
Date: Fri, 25 Nov 2022 01:21:25 +0000

* gnu/packages/tree-sitter.scm (tree-sitter-haskell): New variable.
---
 gnu/packages/tree-sitter.scm | 24 ++++++++++++++++++++++++
 1 file changed, 24 insertions(+)

diff --git a/gnu/packages/tree-sitter.scm b/gnu/packages/tree-sitter.scm
index 61d6eba777..668788e582 100644
--- a/gnu/packages/tree-sitter.scm
+++ b/gnu/packages/tree-sitter.scm
@@ -352,3 +352,27 @@ (define-public tree-sitter-go
       (description
        "This package provides a Golang grammar for the Tree-sitter library.")
       (license license:expat))))
+
+(define-public tree-sitter-haskell
+  (let ((commit "e30bdfd53eb28c73f26a68b77d436fd2140af167")
+        (revision "1"))
+    (package
+     (name "tree-sitter-haskell")
+     (version (git-version "0.14.0" revision commit))
+     (source (origin
+              (method git-fetch)
+              (uri (git-reference
+                    (url "https://github.com/tree-sitter/tree-sitter-haskell")
+                    (commit commit)))
+              (file-name (git-file-name name version))
+              (sha256
+               (base32
+                "1ylgs6lv1dyh3wxf756fii070r32hzbgddrfjbi2v369vmvg337p"))
+              (modules '((guix build utils)))
+              (snippet tree-sitter-delete-generated-files)))
+     (build-system tree-sitter-build-system)
+     (home-page "https://github.com/tree-sitter/tree-sitter-haskell")
+     (synopsis "Tree-sitter Haskell grammar")
+     (description
+      "This package provides a Haskell grammar for the Tree-sitter library.")
+     (license license:expat))))
-- 
2.38.1