diff options
author | Krzysztof Gogolewski <krzysztof.gogolewski@tweag.io> | 2019-04-09 13:51:29 +0200 |
---|---|---|
committer | Marge Bot <ben+marge-bot@smart-cactus.org> | 2019-05-29 10:35:50 -0400 |
commit | c8380a4a738e5c2488337496b0d1b1faf6a7de9d (patch) | |
tree | 1ed9ca05baf961eef5fb022fd1e0147523049013 /compiler/main/GhcMake.hs | |
parent | 9334467f5dd59f9ea7c231c5ff0b1987df4d1570 (diff) | |
download | haskell-c8380a4a738e5c2488337496b0d1b1faf6a7de9d.tar.gz |
Handle hs-boot files in -Wmissing-home-modules (#16551)
Diffstat (limited to 'compiler/main/GhcMake.hs')
-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 ac92f3b42b..c8442e2a71 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). |