about summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
authorPeter Simons <simons@cryp.to>2013-08-21 01:28:41 -0700
committerPeter Simons <simons@cryp.to>2013-08-21 01:28:41 -0700
commitb4750167e747120f5d9ad4be05a6a831b605e696 (patch)
tree007be5cd115f5e57c10a7f6e3bc5419e180240ab /pkgs
parenta0ccb6dbbb6f585591865e22bb965e06d4dc3d89 (diff)
parentfdb6ae2734d6dea5bf0c7048629b88fc2396e649 (diff)
downloadnixlib-b4750167e747120f5d9ad4be05a6a831b605e696.tar
nixlib-b4750167e747120f5d9ad4be05a6a831b605e696.tar.gz
nixlib-b4750167e747120f5d9ad4be05a6a831b605e696.tar.bz2
nixlib-b4750167e747120f5d9ad4be05a6a831b605e696.tar.lz
nixlib-b4750167e747120f5d9ad4be05a6a831b605e696.tar.xz
nixlib-b4750167e747120f5d9ad4be05a6a831b605e696.tar.zst
nixlib-b4750167e747120f5d9ad4be05a6a831b605e696.zip
Merge pull request #847 from errge/master
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 {};