lol

Merge pull request #289070 from sternenseemann/haskell-compiler-native-bignum-excludes

haskell.compiler: determine native-bignum GHCs via excludes

authored by

maralorn and committed by
GitHub
85ebf884 e5339288

+14 -21
+14 -21
pkgs/top-level/haskell-packages.nix
··· 9 9 "ghc8107" 10 10 ]; 11 11 12 - nativeBignumIncludes = [ 13 - "ghc90" 14 - "ghc902" 15 - "ghc92" 16 - "ghc925" 17 - "ghc926" 18 - "ghc927" 19 - "ghc928" 20 - "ghc94" 21 - "ghc945" 22 - "ghc946" 23 - "ghc947" 24 - "ghc948" 25 - "ghc96" 26 - "ghc963" 27 - "ghc964" 28 - "ghc98" 29 - "ghc981" 30 - "ghcHEAD" 12 + nativeBignumExcludes = integerSimpleIncludes ++ [ 13 + # haskell.compiler sub groups 14 + "integer-simple" 15 + "native-bignum" 16 + # Binary GHCs 17 + "ghc865Binary" 18 + "ghc8107Binary" 19 + "ghc924Binary" 20 + "ghc963Binary" 21 + # ghcjs 22 + "ghcjs" 23 + "ghcjs810" 31 24 ]; 32 25 33 26 haskellLibUncomposable = import ../development/haskell-modules/lib { ··· 357 350 # with "native" and "gmp" backends. 358 351 native-bignum = let 359 352 nativeBignumGhcNames = pkgs.lib.filter 360 - (name: builtins.elem name nativeBignumIncludes) 353 + (name: !(builtins.elem name nativeBignumExcludes)) 361 354 (pkgs.lib.attrNames compiler); 362 355 in pkgs.recurseIntoAttrs (pkgs.lib.genAttrs 363 356 nativeBignumGhcNames ··· 502 495 native-bignum = 503 496 let 504 497 nativeBignumGhcNames = pkgs.lib.filter 505 - (name: builtins.elem name nativeBignumIncludes) 498 + (name: !(builtins.elem name nativeBignumExcludes)) 506 499 (pkgs.lib.attrNames compiler); 507 500 in 508 501 pkgs.lib.genAttrs nativeBignumGhcNames