#1365: -fbyte-code is ignored in a OPTIONS_GHC pragma
--------------------------------+-------------------------------------------
Reporter: mnislaih | Owner: simonmar
Type: feature request | Status: new
Priority: normal | Milestone: 6.10
Component: GHCi | Version: 6.7
Severity: minor | Resolution:
Keywords: | Difficulty: Unknown
Os: MacOS X | Testcase:
Architecture: x86 |
--------------------------------+-------------------------------------------
Changes (by simonmar):
* milestone: => 6.10
* type: bug => feature request
Comment:
This is by design, in fact. GHCi has the restriction that object code
cannot be linked to byte-code, so it doesn't make sense to annotate an
individual modules with `-fbyte-code`, because it would force all modules
that depend on it to also be loaded with `-fbyte-code` (and could conflict
with other `-fobject-code` annotations). I think the choice of byte-code
/object-code doesn't belong in the source code. But you're right that
there ought to be a way to say "I want to load module M as byte code, and
whatever depends on it", so I'm changing this to a feature request.
Current workaround is to load the whole of the program with `-fobject-
code`, then switch to `-fbyte-code`, touch a source file (or remove the
object file) and `:reload`.
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/1365>
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