Skip to content

Commit 78f5c60

Browse files
committed
Fix for latest GHC head where ghc-bignum has no exported-modules and renames som of the reexported ones.
1 parent 26f6823 commit 78f5c60

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/call-cabal-project-to-nix.nix

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -511,8 +511,8 @@ let
511511
json_cabal_file=$(mktemp)
512512
cabal2json $fixed_cabal_file > $json_cabal_file
513513
514-
exposed_modules="$(jq -r '.library."exposed-modules"[]|select(type=="array")[]' $json_cabal_file)"
515-
reexported_modules="$(jq -r '.library."reexported-modules"//[]|.[]|select(type=="array")[]' $json_cabal_file)"
514+
exposed_modules="$(jq -r '.library."exposed-modules"//[]|.[]|select(type=="array")[]' $json_cabal_file)"
515+
reexported_modules="$(jq -r '.library."reexported-modules"//[]|.[]|select(type=="array")[]' $json_cabal_file | sed 's/.* as //g')"
516516
517517
# FIXME This is a bandaid. Rather than doing this, conditionals should be interpreted.
518518
${pkgs.lib.optionalString pkgs.stdenv.targetPlatform.isGhcjs ''

0 commit comments

Comments
 (0)