Changes between Version 1 and Version 2 of Ticket #481


Ignore:
Timestamp:
Oct 20, 2006 2:58:03 PM (8 years ago)
Author:
igloo
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #481

    • Property Test Case changed from to TH_recompile
    • Property Milestone changed from to _|_
  • Ticket #481 – Description

    v1 v2  
    1 {{{ 
    21The recompilation check only recompiles a module when  
    32the *interface* of a module it imports changes.  But  
     
    20191) create Main.hs containing code 
    2120 
     21{{{ 
    2222module Main where 
    2323import Sub 
    2424main = print $x 
     25}}} 
    2526 
    2627and Sub.hs containing code 
    2728 
     29{{{ 
    2830module Sub where 
    2931x = [| 1 |] 
    30  
    31  
     32}}} 
    3233 
    33342) compile them with --make: 
    3435 
     36{{{ 
    3537C:\!\Haskell\!>ghc --make -fth Main.hs 
    3638Chasing modules from: Main.hs 
     
    4547C:\!\Haskell\!>main.exe 
    46481 
    47  
     49}}} 
    4850 
    49513) now change Sub.hs to the following code: 
    5052 
     53{{{ 
    5154module Sub where 
    5255x = [| 2 |] 
    53  
    54  
     56}}} 
    5557 
    56584) and recompile program: 
    5759 
     60{{{ 
    5861C:\!\Haskell\!>ghc --make -fth Main.hs 
    5962Chasing modules from: Main.hs 
     
    6467C:\!\Haskell\!>main.exe 
    65681 
    66  
     69}}} 
    6770 
    6871As you see, Main.hs is not recompiled despite the fact  
    6972that definition 
    7073of x is changed and now program must print "2" 
    71  
    72  
    73 }}}