#3783: Allow --make and --fno-code
------------------------------+---------------------------------------------
Reporter: duncan | Owner:
Type: feature request | Status: new
Priority: normal | Milestone: 6.14.1
Component: Compiler | Version: 6.12.1
Resolution: | Keywords:
Difficulty: | Os: Unknown/Multiple
Testcase: | Architecture: Unknown/Multiple
Failure: None/Unknown |
------------------------------+---------------------------------------------
Changes (by simonmar):
* milestone: => 6.14.1
Comment:
I think it might be just a bug in the front end that the combination is
disallowed. The GHC API certainly supports this mode of compilation, and
indeed Haddock uses it. However, in this mode we don't currently generate
`.hi` files. That is fairly easy to change, but apparently there's a need
for both modes, so perhaps we need a flag.
The main problem with `-fno-code` is that Template Haskell code cannot be
compiled this way, for obvious reasons. Haddock has to go back and
compile things to object code if TH is needed (I don't recall how it
figures out that it needs to do this, though).
Simon: perhaps `-dsuppress-uniques` shouldn't apply when generating code?
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/3783#comment:2>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs