Commit b4d17f0c authored by sternenseemann's avatar sternenseemann
Browse files

haskell.compiler.native-bignum: don't evaluate compiler exprs

This makes isNativeBignumGhc purely textual again after #460845.
Could improve performance in the right conditions, but most importantly
solves eval issues with aliases allowed (due to the throw-ing ghc
attributes) without resorting to tryEval.
parent 992389fa
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -224,8 +224,7 @@ in
      native-bignum =
        let
          isNativeBignumGhc =
            name:
            !(builtins.elem name nativeBignumExcludes) && !(compiler.${name} ? isMhs && compiler.${name}.isMhs);
            name: pkgs.lib.hasPrefix "ghc" name && !(builtins.elem name nativeBignumExcludes);
          nativeBignumGhcNames = pkgs.lib.filter isNativeBignumGhc (pkgs.lib.attrNames compiler);
        in
        pkgs.lib.recurseIntoAttrs (