tests.haskell.incremental: change package used from turtle to temporary

With a recent hackage update, turtle stopped compiling on ghc94. This
commit changes the tests.haskell.incremental test to use the temporary
package instead of turtle.

+9 -9
+9 -9
pkgs/test/haskell/incremental/default.nix
··· 9 inherit (haskell.lib.compose) overrideCabal; 10 11 # Incremental builds work with GHC >=9.4. 12 - turtle = haskell.packages.ghc944.turtle; 13 14 - # This will do a full build of `turtle`, while writing the intermediate build products 15 # (compiled modules, etc.) to the `intermediates` output. 16 - turtle-full-build-with-incremental-output = overrideCabal (drv: { 17 doInstallIntermediates = true; 18 enableSeparateIntermediatesOutput = true; 19 - }) turtle; 20 21 - # This will do an incremental build of `turtle` by copying the previously 22 # compiled modules and intermediate build products into the source tree 23 # before running the build. 24 # 25 # GHC will then naturally pick up and reuse these products, making this build 26 # complete much more quickly than the previous one. 27 - turtle-incremental-build = overrideCabal (drv: { 28 - previousIntermediates = turtle-full-build-with-incremental-output.intermediates; 29 - }) turtle; 30 in 31 - turtle-incremental-build.overrideAttrs (old: { 32 meta = { 33 maintainers = lib.teams.mercury.members; 34 };
··· 9 inherit (haskell.lib.compose) overrideCabal; 10 11 # Incremental builds work with GHC >=9.4. 12 + temporary = haskell.packages.ghc944.temporary; 13 14 + # This will do a full build of `temporary`, while writing the intermediate build products 15 # (compiled modules, etc.) to the `intermediates` output. 16 + temporary-full-build-with-incremental-output = overrideCabal (drv: { 17 doInstallIntermediates = true; 18 enableSeparateIntermediatesOutput = true; 19 + }) temporary; 20 21 + # This will do an incremental build of `temporary` by copying the previously 22 # compiled modules and intermediate build products into the source tree 23 # before running the build. 24 # 25 # GHC will then naturally pick up and reuse these products, making this build 26 # complete much more quickly than the previous one. 27 + temporary-incremental-build = overrideCabal (drv: { 28 + previousIntermediates = temporary-full-build-with-incremental-output.intermediates; 29 + }) temporary; 30 in 31 + temporary-incremental-build.overrideAttrs (old: { 32 meta = { 33 maintainers = lib.teams.mercury.members; 34 };