[GHC] #7447: Stale .hi files affect compilation.

GHC cvs-ghc at haskell.org
Wed Mar 13 19:57:59 CET 2013


#7447: Stale .hi files affect compilation.
------------------------------------------------+---------------------------
  Reporter:  int-e                              |          Owner:                
      Type:  bug                                |         Status:  closed        
  Priority:  high                               |      Milestone:  7.6.2         
 Component:  Compiler                           |        Version:  7.6.1         
Resolution:  fixed                              |       Keywords:                
        Os:  Linux                              |   Architecture:  x86_64 (amd64)
   Failure:  Incorrect warning at compile-time  |     Difficulty:  Unknown       
  Testcase:                                     |      Blockedby:                
  Blocking:                                     |        Related:                
------------------------------------------------+---------------------------
Changes (by parcs):

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


Comment:

 This is what I get with current HEAD:

 {{{
 > echo 'module Peaker(L(..)) where{ data V = V {-# UNPACK #-} !L; data L =
 L V }' > Peaker.hs
 > ghc -fforce-recomp -O1 Peaker.hs
 [1 of 1] Compiling Peaker           ( Peaker.hs, Peaker.o )
 > ghc -fforce-recomp -O1 Peaker.hs
 [1 of 1] Compiling Peaker           ( Peaker.hs, Peaker.o )
 >
 }}}

 The warning is no longer produced at all, which I think is the correct
 behavior because there is no reason that L shouldn't be able to get
 unpacked into V. So I think it's OK to close the ticket.

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/7447#comment:2>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler



More information about the ghc-tickets mailing list