diff mbox series

[bug#50835,2/8] gnu: Add ghc-scanner.

Message ID 20210927021033.17700-2-singpolyma@singpolyma.net
State New
Headers show
Series New Haskell packages: cache, redis client, xmpp | expand

Checks

Context Check Description
cbaines/applying patch fail View Laminar job
cbaines/issue success View issue
cbaines/applying patch fail View Laminar job
cbaines/issue success View issue
cbaines/applying patch fail View Laminar job
cbaines/issue success View issue

Commit Message

Stephen Paul Weber Sept. 27, 2021, 2:10 a.m. UTC
* gnu/packages/haskell-xyz.scm (ghc-scanner): New variable.
---
 gnu/packages/haskell-xyz.scm | 25 +++++++++++++++++++++++++
 1 file changed, 25 insertions(+)
diff mbox series

Patch

diff --git a/gnu/packages/haskell-xyz.scm b/gnu/packages/haskell-xyz.scm
index f5ae156d35..a7af298ada 100644
--- a/gnu/packages/haskell-xyz.scm
+++ b/gnu/packages/haskell-xyz.scm
@@ -15741,3 +15741,28 @@  compression ratios.")
 patrickmn/go-cache for Go.  The cache is a shared mutable HashMap implemented
 using STM and with support for expiration times.")
     (license license:bsd-3)))
+
+(define-public ghc-scanner
+  (package
+    (name "ghc-scanner")
+    (version "0.3.1")
+    (source
+      (origin
+        (method url-fetch)
+        (uri (string-append
+               "https://hackage.haskell.org/package/scanner/scanner-"
+               version
+               ".tar.gz"))
+        (sha256
+          (base32 "1mhqh94qra08zidqfsq0gxi83cgflqldnk9rr53haynbgmd5y82k"))))
+    (build-system haskell-build-system)
+    (inputs `(("ghc-fail" ,ghc-fail)))
+    (native-inputs
+      `(("ghc-hspec" ,ghc-hspec)
+        ("pkg-config" ,pkg-config)))
+    (home-page "https://github.com/Yuras/scanner")
+    (synopsis
+      "Fast non-backtracking incremental combinator parsing for bytestrings")
+    (description
+      "Parser combinator library designed to be fast.  It doesn't support backtracking.")
+    (license license:bsd-3)))