[GHC] #8042: `:load *` and `:add *` misbehave in presence of `-fobject-code`
GHC
ghc-devs at haskell.org
Sun Jul 7 10:34:21 CEST 2013
#8042: `:load *` and `:add *` misbehave in presence of `-fobject-code`
------------------------------------+-------------------------------------
Reporter: hvr | Owner:
Type: bug | Status: new
Priority: normal | Milestone:
Component: GHCi | Version: 7.6.3
Keywords: | Operating System: Unknown/Multiple
Architecture: Unknown/Multiple | Type of failure: None/Unknown
Difficulty: Unknown | Test Case:
Blocked By: | Blocking:
Related Tickets: |
------------------------------------+-------------------------------------
The documentation states for the `*`-forms of `:add` and `:load` that
> Normally pre-compiled code for a module will be loaded if available, or
otherwise the module will be compiled to byte-code. Using the `*` prefix
forces a module to be loaded as byte-code.
However, this seems to be ignored when `-fobject-code` has been enabled.
In that case, the compiled code is ''always'' used, regardless of whether
the `*`-form is used.
Having `-fobject-code` enabled is very useful for large projects as it
cuts down loading times, whereas being able to use the `*`-forms on
individual modules from the target set allows for being inside the module
context, which is very useful for integration with Emacs (and IDEs), or
for being able to set breakpoints.
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/8042>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list