File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 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 ''
You can’t perform that action at this time.
0 commit comments