From bcc7c4948806b863469f83d5e61b499b54036d9e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andres=20L=C3=B6h?= Date: Fri, 16 Jul 2010 10:39:02 +0000 Subject: [PATCH] Added the hint Haskell package plus dependencies. svn path=/nixpkgs/trunk/; revision=22617 --- .../haskell/MonadCatchIO-mtl/default.nix | 12 ++++++++++++ .../libraries/haskell/ghc-mtl/default.nix | 12 ++++++++++++ .../libraries/haskell/hint/default.nix | 16 ++++++++++++++++ pkgs/top-level/haskell-packages.nix | 14 ++++++++++++++ 4 files changed, 54 insertions(+) create mode 100644 pkgs/development/libraries/haskell/MonadCatchIO-mtl/default.nix create mode 100644 pkgs/development/libraries/haskell/ghc-mtl/default.nix create mode 100644 pkgs/development/libraries/haskell/hint/default.nix diff --git a/pkgs/development/libraries/haskell/MonadCatchIO-mtl/default.nix b/pkgs/development/libraries/haskell/MonadCatchIO-mtl/default.nix new file mode 100644 index 000000000000..8e228bef5ef6 --- /dev/null +++ b/pkgs/development/libraries/haskell/MonadCatchIO-mtl/default.nix @@ -0,0 +1,12 @@ +{cabal, mtl, extensibleExceptions} : + +cabal.mkDerivation (self : { + pname = "MonadCatchIO-mtl"; + version = "0.3.0.1"; + sha256 = "56113319439a10e338b2e3169e1df575024fbaf97827511f4856e46efbac9a07"; + propagatedBuildInputs = [mtl extensibleExceptions]; + meta = { + description = "Monad-transformer version of the Control.Exception module"; + }; +}) + diff --git a/pkgs/development/libraries/haskell/ghc-mtl/default.nix b/pkgs/development/libraries/haskell/ghc-mtl/default.nix new file mode 100644 index 000000000000..07b55c1aaa75 --- /dev/null +++ b/pkgs/development/libraries/haskell/ghc-mtl/default.nix @@ -0,0 +1,12 @@ +{cabal, mtl, MonadCatchIOMtl} : + +cabal.mkDerivation (self : { + pname = "ghc-mtl"; + version = "1.0.1.0"; + sha256 = "5284e0ecf99511e6263503412faf6fa809dc577c009fde63203d46405eb1b191"; + propagatedBuildInputs = [mtl MonadCatchIOMtl]; + meta = { + description = "An mtl compatible version of the Ghc-Api monads and monad-transformers"; + }; +}) + diff --git a/pkgs/development/libraries/haskell/hint/default.nix b/pkgs/development/libraries/haskell/hint/default.nix new file mode 100644 index 000000000000..17a5518c721d --- /dev/null +++ b/pkgs/development/libraries/haskell/hint/default.nix @@ -0,0 +1,16 @@ +{cabal, extensibleExceptions, filepath, ghcMtl, + ghcPaths, haskellSrc, MonadCatchIOMtl, mtl, utf8String} : + +cabal.mkDerivation (self : { + pname = "hint"; + version = "0.3.2.3"; + sha256 = "1cc01037cfd32eb1a299ce625487411a97ce70178778d7bbd1d5fcef7d3d40c4"; + propagatedBuildInputs = [ + extensibleExceptions filepath ghcMtl ghcPaths haskellSrc + MonadCatchIOMtl mtl utf8String + ]; + meta = { + description = "An mtl compatible version of the Ghc-Api monads and monad-transformers"; + }; +}) + diff --git a/pkgs/top-level/haskell-packages.nix b/pkgs/top-level/haskell-packages.nix index 875a3cf50525..faa4d7efee24 100644 --- a/pkgs/top-level/haskell-packages.nix +++ b/pkgs/top-level/haskell-packages.nix @@ -189,6 +189,10 @@ rec { inherit cabal pcreLight colorizeHaskell; }; + ghcMtl = import ../development/libraries/haskell/ghc-mtl { + inherit cabal mtl MonadCatchIOMtl; + }; + ghcPaths0106 = import ../development/libraries/haskell/ghc-paths/0.1.0.6.nix { inherit cabal; }; @@ -376,6 +380,12 @@ rec { inherit cabal parsec pcreLight xhtml; }; + hint = import ../development/libraries/haskell/hint { + inherit cabal extensibleExceptions filepath ghcMtl haskellSrc + MonadCatchIOMtl mtl utf8String; + ghcPaths = ghcPaths0106; + }; + Hipmunk = import ../development/libraries/haskell/Hipmunk { inherit cabal; }; @@ -462,6 +472,10 @@ rec { inherit cabal; }; + MonadCatchIOMtl = import ../development/libraries/haskell/MonadCatchIO-mtl { + inherit cabal mtl extensibleExceptions; + }; + monadlab = import ../development/libraries/haskell/monadlab { inherit cabal parsec; };