guix-patches
[Top][All Lists]
Advanced

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

[bug#50835] [PATCH v2 13/24] gnu: Add ghc-random-shuffle.


From: Stephen Paul Weber
Subject: [bug#50835] [PATCH v2 13/24] gnu: Add ghc-random-shuffle.
Date: Thu, 13 Jan 2022 21:45:35 -0500

* gnu/packages/haskell-xyz.scm (ghc-random-shuffle): New variable.
---
 gnu/packages/haskell-xyz.scm | 20 ++++++++++++++++++++
 1 file changed, 20 insertions(+)

diff --git a/gnu/packages/haskell-xyz.scm b/gnu/packages/haskell-xyz.scm
index 146d5ce2cf..74d6460edf 100644
--- a/gnu/packages/haskell-xyz.scm
+++ b/gnu/packages/haskell-xyz.scm
@@ -16388,3 +16388,23 @@ Does only what it needs to do and nothing more, no XEP 
wrappers etc.")
     (synopsis "Quick and dirty statsd interface")
     (description "Hstatsd is a statsd interface.")
     (license license:public-domain)))
+
+(define-public ghc-random-shuffle
+  (package
+    (name "ghc-random-shuffle")
+    (version "0.0.4")
+    (source
+      (origin
+        (method url-fetch)
+        (uri (hackage-uri "random-shuffle" version))
+        (sha256
+          (base32 "0586bnlh0g2isc44jbjvafkcl4yw6lp1db8x6vr0pza0y08l8w2j"))))
+    (build-system haskell-build-system)
+    (inputs (list ghc-random ghc-monadrandom))
+    (home-page "http://hackage.haskell.org/package/random-shuffle";)
+    (synopsis "Random shuffle implementation")
+    (description
+      "This library is a random shuffle implementation on immutable lists,
+based on `perfect shuffle' implementation by Oleg Kiselyov
+available at http://okmij.org/ftp/Haskell/perfect-shuffle.txt";)
+    (license license:bsd-3)))
-- 
2.30.2





reply via email to

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