Commit 2f93432d authored by Edward Z. Yang's avatar Edward Z. Yang
Browse files

Clarify what hsig writing out is.


Signed-off-by: default avatarEdward Z. Yang <ezyang@cs.stanford.edu>
parent 399e54a4
......@@ -595,7 +595,12 @@ writeAutogenFiles verbosity pkg lbi clbi = do
--TODO: document what we're doing here, and move it to its own function
case clbi of
LibComponentLocalBuildInfo { componentInstantiatedWith = insts } ->
-- Harmless enough to do things even when they exist
-- Write out empty hsig files for all requirements, so that GHC
-- has a source file to look at it when it needs to typecheck
-- a signature. It's harmless to write these out even when
-- there is a real hsig file written by the user, since
-- include path ordering ensures that the real hsig file
-- will always be picked up before the autogenerated one.
for_ (map fst insts) $ \mod_name -> do
let sigPath = autogenComponentModulesDir lbi clbi
</> ModuleName.toFilePath mod_name <.> "hsig"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment