From cc025c684dd431fad3cf93bf2c83d94e963722be Mon Sep 17 00:00:00 2001 From: sternenseemann Date: Mon, 3 Jul 2023 12:31:30 +0200 Subject: [PATCH] haskell.packages.ghc96.monad-par: patch for mtl >= 2.3 This allows us building cabal2nix with GHC 9.6 which we can now test on Hydra. --- .../haskell-modules/configuration-ghc-8.6.x.nix | 1 - .../haskell-modules/configuration-ghc-9.6.x.nix | 10 ++++++++++ .../haskell-modules/configuration-ghc-9.8.x.nix | 1 - pkgs/top-level/release-haskell.nix | 16 ++++------------ 4 files changed, 14 insertions(+), 14 deletions(-) diff --git a/pkgs/development/haskell-modules/configuration-ghc-8.6.x.nix b/pkgs/development/haskell-modules/configuration-ghc-8.6.x.nix index 07106503a940..29da58c3f8bc 100644 --- a/pkgs/development/haskell-modules/configuration-ghc-8.6.x.nix +++ b/pkgs/development/haskell-modules/configuration-ghc-8.6.x.nix @@ -69,7 +69,6 @@ self: super: { unicode-transforms = dontCheck super.unicode-transforms; wl-pprint-extras = doJailbreak super.wl-pprint-extras; # containers >=0.4 && <0.6 is too tight; https://github.com/ekmett/wl-pprint-extras/issues/17 RSA = dontCheck super.RSA; # https://github.com/GaloisInc/RSA/issues/14 - monad-par = dontCheck super.monad-par; # https://github.com/simonmar/monad-par/issues/66 github = dontCheck super.github; # hspec upper bound exceeded; https://github.com/phadej/github/pull/341 binary-orphans = dontCheck super.binary-orphans; # tasty upper bound exceeded; https://github.com/phadej/binary-orphans/commit/8ce857226595dd520236ff4c51fa1a45d8387b33 rebase = doJailbreak super.rebase; # time ==1.9.* is too low diff --git a/pkgs/development/haskell-modules/configuration-ghc-9.6.x.nix b/pkgs/development/haskell-modules/configuration-ghc-9.6.x.nix index fc549721129a..916d0c390a4e 100644 --- a/pkgs/development/haskell-modules/configuration-ghc-9.6.x.nix +++ b/pkgs/development/haskell-modules/configuration-ghc-9.6.x.nix @@ -127,6 +127,16 @@ self: super: { sha256 = "0w4y3v69nd3yafpml4gr23l94bdhbmx8xky48a59lckmz5x9fgxv"; }) (doJailbreak super.language-haskell-extract); + # Patch for support of mtl-2.3 + monad-par = appendPatches [ + (pkgs.fetchpatch { + name = "monad-par-mtl-2.3.patch"; + url = "https://github.com/simonmar/monad-par/pull/75/commits/ce53f6c1f8246224bfe0223f4aa3d077b7b6cc6c.patch"; + sha256 = "1jxkl3b3lkjhk83f5q220nmjxbkmni0jswivdw4wfbzp571djrlx"; + stripLen = 1; + }) + ] (doJailbreak super.monad-par); + # 2023-04-03: plugins disabled for hls 1.10.0.0 based on # haskell-language-server = diff --git a/pkgs/development/haskell-modules/configuration-ghc-9.8.x.nix b/pkgs/development/haskell-modules/configuration-ghc-9.8.x.nix index 2ad093ab9652..d8e1e9d7320b 100644 --- a/pkgs/development/haskell-modules/configuration-ghc-9.8.x.nix +++ b/pkgs/development/haskell-modules/configuration-ghc-9.8.x.nix @@ -70,7 +70,6 @@ self: super: { unicode-transforms = dontCheck super.unicode-transforms; wl-pprint-extras = doJailbreak super.wl-pprint-extras; # containers >=0.4 && <0.6 is too tight; https://github.com/ekmett/wl-pprint-extras/issues/17 RSA = dontCheck super.RSA; # https://github.com/GaloisInc/RSA/issues/14 - monad-par = dontCheck super.monad-par; # https://github.com/simonmar/monad-par/issues/66 github = dontCheck super.github; # hspec upper bound exceeded; https://github.com/phadej/github/pull/341 binary-orphans = dontCheck super.binary-orphans; # tasty upper bound exceeded; https://github.com/phadej/binary-orphans/commit/8ce857226595dd520236ff4c51fa1a45d8387b33 diff --git a/pkgs/top-level/release-haskell.nix b/pkgs/top-level/release-haskell.nix index 53fa2ea00abb..8017ec60ff27 100644 --- a/pkgs/top-level/release-haskell.nix +++ b/pkgs/top-level/release-haskell.nix @@ -482,15 +482,9 @@ let cabal-install = released; Cabal_3_10_1_0 = released; Cabal-syntax_3_10_1_0 = released; - cabal2nix = lib.subtractLists [ - compilerNames.ghc962 - ] released; - cabal2nix-unstable = lib.subtractLists [ - compilerNames.ghc962 - ] released; - funcmp = lib.subtractLists [ - compilerNames.ghc962 - ] released; + cabal2nix = released; + cabal2nix-unstable = released; + funcmp = released; haskell-language-server = lib.subtractLists [ # Support ceased as of 1.9.0.0 compilerNames.ghc884 @@ -504,9 +498,7 @@ let hpack = released; hsdns = released; jailbreak-cabal = released; - language-nix = lib.subtractLists [ - compilerNames.ghc962 - ] released; + language-nix = released; large-hashable = [ compilerNames.ghc928 ];