diff options
author | Krzysztof Gogolewski <krzysztof.gogolewski@tweag.io> | 2019-04-09 13:51:29 +0200 |
---|---|---|
committer | Krzysztof Gogolewski <krzysztof.gogolewski@tweag.io> | 2019-04-09 13:51:29 +0200 |
commit | 43a43a3319d68c1692df6acdf283109cb5c030d8 (patch) | |
tree | 47291a746d53895025be1815c1d751e404e50417 /compiler | |
parent | cf9e1837adc647c90cfa176669d14e0d413c043d (diff) | |
download | haskell-wip/T16551a.tar.gz |
Handle hs-boot files in -Wmissing-home-modules (#16551)wip/T16551a
Diffstat (limited to 'compiler')
-rw-r--r-- | compiler/main/GhcMake.hs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/compiler/main/GhcMake.hs b/compiler/main/GhcMake.hs index d730fe70f1..ec6fcf8804 100644 --- a/compiler/main/GhcMake.hs +++ b/compiler/main/GhcMake.hs @@ -184,6 +184,10 @@ warnMissingHomeModules hsc_env mod_graph = is_my_target mod (TargetFile target_file _) | Just mod_file <- ml_hs_file (ms_location mod) = target_file == mod_file || + + -- Don't warn on B.hs-boot if B.hs is specified (#16551) + addBootSuffix target_file == mod_file || + -- We can get a file target even if a module name was -- originally specified in a command line because it can -- be converted in guessTarget (by appending .hs/.lhs). |