@@ -378,25 +378,27 @@ in {
378
378
} ) ) ) ;
379
379
380
380
# Use this where we still have not good way to choose GHC version
381
- defaultCompilerNixNameTODO =
382
- # Need to use something from 8.8.x as the default to build aarch64 native compiler:
383
- if final . targetPlatform . isAarch64 && final . buildPlatform . isAarch64
384
- then "ghc883"
385
- else "ghc865" ;
381
+ internalDefaultCompilerNixName = "ghc883" ;
386
382
387
383
# Use this when we are happy with a general warning
388
384
defaultCompilerNixName = final . haskell-nix . defaultCompilerNixNameWithWarning
389
- ( default :
390
- "WARNING: No compiler nix name specified! "
391
- + "Defaulting to ${ default } . "
392
- + "Please consider specifying a ghc explicitly." ) ;
385
+ ( default : "Please consider specifying ${ default } explicitly." ) ;
393
386
394
387
# when we can provide a better message
395
388
defaultCompilerNixNameWithWarning = warning :
396
389
if final . haskell-nix ? userCompilerNixName
397
- then final . haskell-nix . userCompilerNixName
398
- else __trace ( warning final . haskell-nix . defaultCompilerNixNameTODO )
399
- final . haskell-nix . defaultCompilerNixNameTODO ;
390
+ then
391
+ __trace ( "WARNING: defaultCompilerNixName is deprecated! "
392
+ + warning final . haskell-nix . userCompilerNixName )
393
+ final . haskell-nix . userCompilerNixName
394
+ else
395
+ # Need to use something from 8.8.x as the default to build aarch64 native compiler:
396
+ let compiler-nix-name =
397
+ if final . targetPlatform . isAarch64 && final . buildPlatform . isAarch64
398
+ then "ghc883"
399
+ else "ghc865" ;
400
+ in __trace ( "WARNING: No compiler nix name specified! "
401
+ + warning compiler-nix-name ) compiler-nix-name ;
400
402
401
403
ghc = final . haskell-nix . compiler . "${
402
404
final . haskell-nix . defaultCompilerNixNameWithWarning ( default :
0 commit comments