haskell.compiler.ghc9102: init at 9.10.2

https://www.haskell.org/ghc/blog/20250503-ghc-9.10.2-released.html

+40 -2
+4
pkgs/development/compilers/ghc/9.10.2.nix
··· 1 + import ./common-hadrian.nix { 2 + version = "9.10.2"; 3 + sha256 = "55fd40a005575ac6b33ea928beda81e8c56ffea354b6ac474ee9f9911f23a8de"; 4 + }
+1
pkgs/development/compilers/ghc/common-hadrian.nix
··· 201 201 lib.versionOlder version "9.11" 202 202 && !(lib.versionAtLeast version "9.6.7" && lib.versionOlder version "9.8") 203 203 && !(lib.versionAtLeast version "9.8.4" && lib.versionOlder version "9.9") 204 + && !(lib.versionAtLeast version "9.10.2" && lib.versionOlder version "9.11") 204 205 ) 205 206 [ 206 207 # Determine size of time related types using hsc2hs instead of assuming CLong.
+32 -2
pkgs/top-level/haskell-packages.nix
··· 391 391 buildTargetLlvmPackages = pkgsBuildTarget.llvmPackages_15; 392 392 llvmPackages = pkgs.llvmPackages_15; 393 393 }; 394 + ghc9102 = callPackage ../development/compilers/ghc/9.10.2.nix { 395 + bootPkgs = 396 + # For GHC 9.6 no armv7l bindists are available. 397 + if stdenv.buildPlatform.isAarch32 then 398 + bb.packages.ghc963 399 + else if stdenv.buildPlatform.isPower64 && stdenv.buildPlatform.isLittleEndian then 400 + bb.packages.ghc963 401 + else if stdenv.buildPlatform.isDarwin then 402 + # it seems like the GHC 9.6.* bindists are built with a different 403 + # toolchain than we are using (which I'm guessing from the fact 404 + # that 9.6.4 bindists pass linker flags our ld doesn't support). 405 + # With both 9.6.3 and 9.6.4 binary it is impossible to link against 406 + # the clock package (probably a hsc2hs problem). 407 + bb.packages.ghc963 408 + else 409 + bb.packages.ghc963Binary; 410 + inherit (buildPackages.python3Packages) sphinx; 411 + # Need to use apple's patched xattr until 412 + # https://github.com/xattr/xattr/issues/44 and 413 + # https://github.com/xattr/xattr/issues/55 are solved. 414 + inherit (buildPackages.darwin) xattr autoSignDarwinBinariesHook; 415 + # 2023-01-15: Support range >= 11 && < 16 416 + buildTargetLlvmPackages = pkgsBuildTarget.llvmPackages_15; 417 + llvmPackages = pkgs.llvmPackages_15; 418 + }; 394 419 ghc910 = compiler.ghc9101; 395 420 ghc9121 = callPackage ../development/compilers/ghc/9.12.1.nix { 396 421 bootPkgs = 397 422 # No suitable bindist packaged yet 398 - bb.packages.ghc9101; 423 + bb.packages.ghc9102; 399 424 inherit (buildPackages.python3Packages) sphinx; 400 425 # Need to use apple's patched xattr until 401 426 # https://github.com/xattr/xattr/issues/44 and ··· 408 433 ghc9122 = callPackage ../development/compilers/ghc/9.12.2.nix { 409 434 bootPkgs = 410 435 # No suitable bindist packaged yet 411 - bb.packages.ghc9101; 436 + bb.packages.ghc9102; 412 437 inherit (buildPackages.python3Packages) sphinx; 413 438 # Need to use apple's patched xattr until 414 439 # https://github.com/xattr/xattr/issues/44 and ··· 593 618 ghc9101 = callPackage ../development/haskell-modules { 594 619 buildHaskellPackages = bh.packages.ghc9101; 595 620 ghc = bh.compiler.ghc9101; 621 + compilerConfig = callPackage ../development/haskell-modules/configuration-ghc-9.10.x.nix { }; 622 + }; 623 + ghc9102 = callPackage ../development/haskell-modules { 624 + buildHaskellPackages = bh.packages.ghc9102; 625 + ghc = bh.compiler.ghc9102; 596 626 compilerConfig = callPackage ../development/haskell-modules/configuration-ghc-9.10.x.nix { }; 597 627 }; 598 628 ghc910 = packages.ghc9101;
+3
pkgs/top-level/release-haskell.nix
··· 78 78 ghc983 79 79 ghc984 80 80 ghc9101 81 + ghc9102 81 82 # exclude ghc9121 due to severe miscompilation bug 82 83 ghc9122 83 84 ]; ··· 590 591 hlint = lib.subtractLists [ 591 592 compilerNames.ghc902 592 593 compilerNames.ghc9101 594 + compilerNames.ghc9102 593 595 compilerNames.ghc9122 594 596 ] released; 595 597 hpack = released; ··· 623 625 ]; 624 626 weeder = lib.subtractLists [ 625 627 compilerNames.ghc9101 628 + compilerNames.ghc9102 626 629 compilerNames.ghc9122 627 630 ] released; 628 631 })