#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:                |  
--------------------------+-------------------------------------------------
 Here is a conceived example that illustrates the issue.

 File {{{Foo.hs}}} is changed after it's content has been read in the
 Haskell pre-processor phase.

 {{{
 #!/bin/bash
 #
 # file preprocess.sh
 #
 cat $2 > $3
 sleep 1
 touch $1
 }}}

 {{{
 -- file Foo.hs
 {-# OPTIONS_GHC -F -pgmF ./preprocess.sh #-}
 module Foo where
 }}}

 {{{
 $ ghci Foo.hs
 *Foo> :reload
 }}}

 Expected result: Foo.hs is recompiled on :reload

 Actual result: Nothing is recompiled on :reload

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