@@ -42,6 +42,7 @@ data GhcImplInfo = GhcImplInfo
42
42
, flagPackageConf :: Bool -- ^ use package-conf instead of package-db
43
43
, flagDebugInfo :: Bool -- ^ -g flag supported
44
44
, supportsPkgEnvFiles :: Bool -- ^ picks up @.ghc.environment@ files
45
+ , flagWarnMissingHomeModules :: Bool -- ^ -Wmissing-home-modules is supported
45
46
}
46
47
47
48
getImplInfo :: Compiler -> GhcImplInfo
@@ -67,6 +68,7 @@ ghcVersionImplInfo ver = GhcImplInfo
67
68
, flagPackageConf = v < [7 ,5 ]
68
69
, flagDebugInfo = v >= [7 ,10 ]
69
70
, supportsPkgEnvFiles = v >= [8 ,0 ,1 ,20160901 ] -- broken in 8.0.1, fixed in 8.0.2
71
+ , flagWarnMissingHomeModules = v >= [8 ,2 ,1 ]
70
72
}
71
73
where
72
74
v = versionNumbers ver
@@ -83,6 +85,7 @@ ghcjsVersionImplInfo _ghcjsver ghcver = GhcImplInfo
83
85
, flagPackageConf = False
84
86
, flagDebugInfo = False
85
87
, supportsPkgEnvFiles = ghcv >= [8 ,0 ,2 ] -- TODO: check this works in ghcjs
88
+ , flagWarnMissingHomeModules = False
86
89
}
87
90
where
88
91
ghcv = versionNumbers ghcver
0 commit comments