Skip to content

Commit 8f50d10

Browse files
authored
In cabal impl(ghcjs) is not true for the JS backend for GHC (#2212)
1 parent 6e6af2e commit 8f50d10

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/cabal.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ let
1010
isGhc = true;
1111
# this is partially a hack to support `impl(ghcjs)`.
1212
# We set GHC == true _and_ GHCJS == true.
13-
isGhcjs = hostMap.os == "Ghcjs";
13+
isGhcjs = hostMap.os == "Ghcjs" && (builtins.compareVersions config.compiler.version "9" < 0);
1414
# maybe we need something for asterius here
1515
# as well.
1616
version = lib.mapAttrs (_: f: v: f (builtins.compareVersions config.compiler.version v)) {

0 commit comments

Comments
 (0)