Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Glasgow Haskell Compiler
Packages
Cabal
Commits
2f93432d
Commit
2f93432d
authored
Oct 03, 2016
by
Edward Z. Yang
Browse files
Clarify what hsig writing out is.
Signed-off-by:
Edward Z. Yang
<
ezyang@cs.stanford.edu
>
parent
399e54a4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Cabal/Distribution/Simple/Build.hs
View file @
2f93432d
...
...
@@ -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"
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment