diff --git a/pkgs/development/haskell-modules/configuration-ghc-9.2.x.nix b/pkgs/development/haskell-modules/configuration-ghc-9.2.x.nix index 38c5f16b8eb4..bbbb3f79d69a 100644 --- a/pkgs/development/haskell-modules/configuration-ghc-9.2.x.nix +++ b/pkgs/development/haskell-modules/configuration-ghc-9.2.x.nix @@ -106,4 +106,7 @@ self: super: { inline-c-cpp = (if isDarwin then appendConfigureFlags ["--ghc-option=-fcompact-unwind"] else x: x) super.inline-c-cpp; + + # A given major version of ghc-exactprint only supports one version of GHC. + ghc-exactprint = super.ghc-exactprint_1_5_0; } diff --git a/pkgs/development/haskell-modules/configuration-hackage2nix/main.yaml b/pkgs/development/haskell-modules/configuration-hackage2nix/main.yaml index 43fc6a4bc4a0..712f0b4e6ef5 100644 --- a/pkgs/development/haskell-modules/configuration-hackage2nix/main.yaml +++ b/pkgs/development/haskell-modules/configuration-hackage2nix/main.yaml @@ -84,6 +84,7 @@ extra-packages: - ghc-api-compat == 8.10.7 # 2022-02-17: preserve for GHC 8.10.7 - ghc-api-compat == 8.6 # 2021-09-07: preserve for GHC 8.8.4 - ghc-exactprint == 0.6.* # 2022-12-12: needed for GHC < 9.2 + - ghc-exactprint == 1.5.* # 2023-03-30: needed for GHC == 9.2 - ghc-exactprint == 1.6.* # 2023-03-30: needed for GHC == 9.4 - ghc-lib == 8.10.7.* # 2022-02-17: preserve for GHC 8.10.7 - ghc-lib == 9.2.* # 2022-02-17: preserve for GHC 9.2 diff --git a/pkgs/development/haskell-modules/hackage-packages.nix b/pkgs/development/haskell-modules/hackage-packages.nix index 5a7c9ed43488..8dcbce80d008 100644 --- a/pkgs/development/haskell-modules/hackage-packages.nix +++ b/pkgs/development/haskell-modules/hackage-packages.nix @@ -111708,6 +111708,33 @@ self: { hydraPlatforms = lib.platforms.none; }) {}; + "ghc-exactprint_1_5_0" = callPackage + ({ mkDerivation, base, bytestring, containers, data-default, Diff + , directory, fail, filemanip, filepath, free, ghc, ghc-boot + , ghc-paths, HUnit, mtl, ordered-containers, silently, syb + }: + mkDerivation { + pname = "ghc-exactprint"; + version = "1.5.0"; + sha256 = "07m4cg47knrrvpyimnbc0nq9176vkzwwa64b2iqfj6azn6q2hagp"; + revision = "1"; + editedCabalFile = "1v6my8bnhjhw7k3v2q9iwjpz9lj5g6ilvlzdq6svcabxahmzbr2c"; + isLibrary = true; + isExecutable = true; + libraryHaskellDepends = [ + base bytestring containers data-default directory fail filepath + free ghc ghc-boot ghc-paths mtl ordered-containers syb + ]; + testHaskellDepends = [ + base bytestring containers data-default Diff directory fail + filemanip filepath ghc ghc-boot ghc-paths HUnit mtl + ordered-containers silently syb + ]; + description = "ExactPrint for GHC"; + license = lib.licenses.bsd3; + hydraPlatforms = lib.platforms.none; + }) {}; + "ghc-exactprint" = callPackage ({ mkDerivation, base, bytestring, Cabal-syntax, containers , data-default, Diff, directory, fail, filemanip, filepath, free