diff --git a/hadrian/src/Rules/ToolArgs.hs b/hadrian/src/Rules/ToolArgs.hs index 31e136db82a76f747431830198ac8fcd54200ba5..1dd6addfccba2c1a1e36e739d572f48093ba679a 100644 --- a/hadrian/src/Rules/ToolArgs.hs +++ b/hadrian/src/Rules/ToolArgs.hs @@ -86,9 +86,10 @@ multiSetup pkg_s = do let rexp m = ["-reexported-module", m] let hidir = root </> "interfaces" </> pkgPath p writeFile' (resp_file root p) (intercalate "\n" (th_hack arg_list - ++ modules cd + ++ modules cd ++ concatMap rexp (reexportModules cd) - ++ ["-outputdir", hidir])) + ++ ["-outputdir", hidir, + "-this-package-name", pkgName p])) return (resp_file root p)