#6106: GHCi does not always detect when modules become stale during compilation
--------------------------+-------------------------------------------------
 Reporter:  SimonHengel   |          Owner:                
     Type:  bug           |         Status:  new           
 Priority:  normal        |      Component:  GHCi          
  Version:  7.4.1         |       Keywords:                
       Os:  Linux         |   Architecture:  x86_64 (amd64)
  Failure:  None/Unknown  |       Testcase:                
Blockedby:                |       Blocking:                
  Related:                |  
--------------------------+-------------------------------------------------

Comment(by SimonHengel):

 For some reason, if I included {{{Foo.hs}}} in some other module and
 invoke ghci on that other module, everything works fine.

 Say I have some {{{Main.hs}}}.

 {{{
 -- file Main.hs
 import Foo
 }}}

 Now if I invoke {{{ghci}}} like so

 {{{
 $ ghci Main.hs
 }}}

 {{{Foo.hs}}} will be recompiled on each {{{:reload}}}.

 But if I invoke {{{ghci}}} like so

 {{{
 $ ghci Main.hs Foo.hs
 }}}

 {{{Foo.hs}}} will ''not'' be recompiled on {{{:reload}}}

 Is it, that GHC collects modification times differently for files that are
 given on the command line and files that are detected through dependency
 analysis?

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