#1526: -fobject-code is ignored for interactive compilation
-------------------------+--------------------------------------------------
Reporter: sorear | Owner:
Type: bug | Status: new
Priority: normal | Milestone:
Component: Compiler | Version: 6.7
Severity: normal | Resolution:
Keywords: | Difficulty: Unknown
Os: Unknown | Testcase:
Architecture: Unknown |
-------------------------+--------------------------------------------------
Comment (by simonpj):
The message is indeed misleading. Code typed in at the GHCi prompt is
compiled on the fly to bytecode only, never to object code. (Compiling
command-line code to object code is probably not worth it.)
So the immediate problem is that the message suggests using `-fobject-
code` etc even though that won't help when compiling a fragment written on
the command line, rather than a module.
Trouble is, the message comes by way of an exception
(`unboxedTupleException`) from the bowels of the bytecode generator
`ByteCodeGen.lhs`.
I don't know what the easiest way to tidy this up is. Perhpas catch the
exception somewhere that knows what is being compiled. Or pass the info
about command-line vs module into the bytecode compiler. Tiresome, for
sure.
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/1526>
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