Wed Jul 9 04:08:30 PDT 2008 Simon Marlow <[EMAIL PROTECTED]>
* #1205: ':load foo.hs' in GHCi always compiles to bytecode
So now
:load foo.hs loads bytecode for foo.hs, even if foo.o exists
:load foo is just shorthand for :load foo.hs
:load M loads a module M, as object code if possible
(no change here)
:set -fobject-code
:load foo.hs loads foo.hs as object code; an existing foo.o
can be used.
This turned out to be very straightforward: when building the
ModSummary for a file (summariseFile) we just ignore the object file
unless -fobject-code is on.
M ./compiler/main/GHC.hs -2 +10
M ./docs/users_guide/ghci.xml -11 +25
View patch online:
http://darcs.haskell.org/ghc/_darcs/patches/20080709110830-12142-0c1a33e7bd4dd6575010b695828bd69dfbf523bc.gz
_______________________________________________
Cvs-ghc mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/cvs-ghc