about summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
authorGergely Risko <gergely@risko.hu>2013-08-20 17:46:58 +0200
committerGergely Risko <gergely@risko.hu>2013-08-20 17:46:58 +0200
commitfdb6ae2734d6dea5bf0c7048629b88fc2396e649 (patch)
treef5161aee4acac18bd6127a59f4b9f6af3ce8b39d /pkgs
parent310268f36d77869572d11430a5ad7a50c6a87fad (diff)
downloadnixlib-fdb6ae2734d6dea5bf0c7048629b88fc2396e649.tar
nixlib-fdb6ae2734d6dea5bf0c7048629b88fc2396e649.tar.gz
nixlib-fdb6ae2734d6dea5bf0c7048629b88fc2396e649.tar.bz2
nixlib-fdb6ae2734d6dea5bf0c7048629b88fc2396e649.tar.lz
nixlib-fdb6ae2734d6dea5bf0c7048629b88fc2396e649.tar.xz
nixlib-fdb6ae2734d6dea5bf0c7048629b88fc2396e649.tar.zst
nixlib-fdb6ae2734d6dea5bf0c7048629b88fc2396e649.zip
Add modular-arithmetic haskell library
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/development/libraries/haskell/modular-arithmetic/default.nix12
-rw-r--r--pkgs/top-level/haskell-packages.nix2
2 files changed, 14 insertions, 0 deletions
diff --git a/pkgs/development/libraries/haskell/modular-arithmetic/default.nix b/pkgs/development/libraries/haskell/modular-arithmetic/default.nix
new file mode 100644
index 000000000000..c4a77630e6ae
--- /dev/null
+++ b/pkgs/development/libraries/haskell/modular-arithmetic/default.nix
@@ -0,0 +1,12 @@
+{ cabal }:
+
+cabal.mkDerivation (self: {
+  pname = "modular-arithmetic";
+  version = "1.0.1.1";
+  sha256 = "14n83kjmz8mqjivjhwxk1zckms5z3gn77yq2hsw2yybzff2vkdkd";
+  meta = {
+    description = "A type for integers modulo some constant";
+    license = self.stdenv.lib.licenses.bsd3;
+    platforms = self.ghc.meta.platforms;
+  };
+})
diff --git a/pkgs/top-level/haskell-packages.nix b/pkgs/top-level/haskell-packages.nix
index 18f41f4740c8..07b4071a0048 100644
--- a/pkgs/top-level/haskell-packages.nix
+++ b/pkgs/top-level/haskell-packages.nix
@@ -1398,6 +1398,8 @@ let result = let callPackage = x : y : modifyPrio (newScope result.final x y);
 
   mmap = callPackage ../development/libraries/haskell/mmap {};
 
+  modularArithmetic = callPackage ../development/libraries/haskell/modular-arithmetic {};
+
   MonadCatchIOMtl = callPackage ../development/libraries/haskell/MonadCatchIO-mtl {};
 
   MonadCatchIOTransformers = callPackage ../development/libraries/haskell/MonadCatchIO-transformers {};