#1205: ghci reports functions not in scope after loading a .hs, if there is a .o
present
-----------------------------+----------------------------------------------
 Reporter:  guest            |          Owner:             
     Type:  feature request  |         Status:  closed     
 Priority:  high             |      Milestone:  6.10 branch
Component:  GHCi             |        Version:  6.6        
 Severity:  normal           |     Resolution:  fixed      
 Keywords:                   |     Difficulty:  Unknown    
 Testcase:                   |   Architecture:  Unknown    
       Os:  Unknown          |  
-----------------------------+----------------------------------------------
Changes (by simonmar):

  * status:  new => closed
  * resolution:  => fixed

Comment:

 Fixed:

 {{{
 Wed Jul  9 12:08:30 BST 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.
 }}}

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/1205#comment:7>
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

Reply via email to