Skip to content

Commit

Permalink
In cabal impl(ghcjs) is not true for the JS backend for GHC (#2212)
Browse files Browse the repository at this point in the history
  • Loading branch information
hamishmack authored Jun 8, 2024
1 parent 6e6af2e commit 8f50d10
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/cabal.nix
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ let
isGhc = true;
# this is partially a hack to support `impl(ghcjs)`.
# We set GHC == true _and_ GHCJS == true.
isGhcjs = hostMap.os == "Ghcjs";
isGhcjs = hostMap.os == "Ghcjs" && (builtins.compareVersions config.compiler.version "9" < 0);
# maybe we need something for asterius here
# as well.
version = lib.mapAttrs (_: f: v: f (builtins.compareVersions config.compiler.version v)) {
Expand Down

0 comments on commit 8f50d10

Please sign in to comment.