diff --git a/pkgs/development/libraries/haskell/attempt/default.nix b/pkgs/development/libraries/haskell/attempt/0.3.1.1.nix similarity index 100% rename from pkgs/development/libraries/haskell/attempt/default.nix rename to pkgs/development/libraries/haskell/attempt/0.3.1.1.nix diff --git a/pkgs/development/libraries/haskell/attempt/0.4.0.nix b/pkgs/development/libraries/haskell/attempt/0.4.0.nix new file mode 100644 index 000000000000..2c5fc47ea314 --- /dev/null +++ b/pkgs/development/libraries/haskell/attempt/0.4.0.nix @@ -0,0 +1,18 @@ +{ cabal, failure }: + +cabal.mkDerivation (self: { + pname = "attempt"; + version = "0.4.0"; + sha256 = "0n7srd1gy1fa0q1qzizvdgmrc078jyx47115aw85vvl74vh9qyjy"; + buildDepends = [ failure ]; + meta = { + homepage = "http://github.com/snoyberg/attempt/tree/master"; + description = "Concrete data type for handling extensible exceptions as failures"; + license = self.stdenv.lib.licenses.bsd3; + platforms = self.ghc.meta.platforms; + maintainers = [ + self.stdenv.lib.maintainers.andres + self.stdenv.lib.maintainers.simons + ]; + }; +}) diff --git a/pkgs/top-level/haskell-packages.nix b/pkgs/top-level/haskell-packages.nix index af5967c2285c..757377816522 100644 --- a/pkgs/top-level/haskell-packages.nix +++ b/pkgs/top-level/haskell-packages.nix @@ -439,7 +439,11 @@ let result = let callPackage = x : y : modifyPrio (newScope result.final x y); async = callPackage ../development/libraries/haskell/async {}; - attempt = callPackage ../development/libraries/haskell/attempt {}; + attempt_0_3_1_1 = callPackage ../development/libraries/haskell/attempt/0.3.1.1.nix { + failure = self.failure_0_1_2; + }; + attempt_0_4_0 = callPackage ../development/libraries/haskell/attempt/0.4.0.nix {}; + attempt = self.attempt_0_4_0; attoparsec = callPackage ../development/libraries/haskell/attoparsec {}; @@ -551,7 +555,9 @@ let result = let callPackage = x : y : modifyPrio (newScope result.final x y); time = self.time_1_1_3; }; - convertibleText = callPackage ../development/libraries/haskell/convertible-text {}; + convertibleText = callPackage ../development/libraries/haskell/convertible-text { + attempt = self.attempt_0_3_1_1; + }; continuedFractions = callPackage ../development/libraries/haskell/continued-fractions {};