Skip to content

Commit

Permalink
no need for special hs-boot treatment
Browse files Browse the repository at this point in the history
  • Loading branch information
wavewave committed Sep 24, 2024
1 parent c45c105 commit ba2c53a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion haskell/tools/generate_target_metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ def determine_module_mapping(ghc_depends, source_prefix):
if len(boot_sources) != 1:
raise RuntimeError(f"Expected at most one Haskell boot file for module '{modname}' but got '{boot_sources}'.")

boot_apparent_name = src_to_module_name(strip_prefix_(source_prefix, boot_sources[0].replace(".hs-boot", ".hs")).lstrip("/")) + "-boot"
boot_apparent_name = src_to_module_name(strip_prefix_(source_prefix, boot_sources[0]).lstrip("/")) + "-boot"

if boot_apparent_name != boot_modname:
result[boot_apparent_name] = boot_modname
Expand Down

0 comments on commit ba2c53a

Please sign in to comment.