[GHC] #8526: -fforce-recomp does not re-summarise modules

GHC ghc-devs at haskell.org
Tue Nov 12 21:11:50 UTC 2013


#8526: -fforce-recomp does not re-summarise modules
------------------------------------+-------------------------------------
       Reporter:  parcs             |             Owner:
           Type:  bug               |            Status:  new
       Priority:  normal            |         Milestone:
      Component:  Driver            |           Version:  7.6.3
       Keywords:                    |  Operating System:  Unknown/Multiple
   Architecture:  Unknown/Multiple  |   Type of failure:  None/Unknown
     Difficulty:  Unknown           |         Test Case:
     Blocked By:                    |          Blocking:
Related Tickets:                    |
------------------------------------+-------------------------------------
 -fforce-recomp should re-summarise modules so that the source file will
 get re-preprocessed. Otherwise a modification to an `#include`'d file will
 not get picked up.

 {{{
 $ ghci -XCPP -v0 -fforce-recomp
 Prelude> :! echo '#include "A.hs-inc"' > A.hs
 Prelude> :! echo 'a = True' > A.hs-inc
 Prelude> :l A
 *Main> a
 True
 *Main> :! echo 'a = False' > A.hs-inc
 *Main> :r
 *Main> a
 True
 *Main>
 }}}

--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/8526>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler


More information about the ghc-tickets mailing list