From fdb6ae2734d6dea5bf0c7048629b88fc2396e649 Mon Sep 17 00:00:00 2001 From: Gergely Risko Date: Tue, 20 Aug 2013 17:46:58 +0200 Subject: [PATCH] Add modular-arithmetic haskell library --- .../libraries/haskell/modular-arithmetic/default.nix | 12 ++++++++++++ pkgs/top-level/haskell-packages.nix | 2 ++ 2 files changed, 14 insertions(+) create mode 100644 pkgs/development/libraries/haskell/modular-arithmetic/default.nix 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 00000000000..c4a77630e6a --- /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 18f41f4740c..07b4071a004 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 {};