[GHC] #7582: Created thunk gets immediately evaluated

GHC cvs-ghc at haskell.org
Tue Jan 15 10:41:41 CET 2013


#7582: Created thunk gets immediately evaluated
---------------------------------+------------------------------------------
    Reporter:  tibbe             |       Owner:                  
        Type:  bug               |      Status:  new             
    Priority:  normal            |   Milestone:                  
   Component:  Compiler          |     Version:  7.6.1           
    Keywords:                    |          Os:  Unknown/Multiple
Architecture:  Unknown/Multiple  |     Failure:  None/Unknown    
  Difficulty:  Unknown           |    Testcase:                  
   Blockedby:                    |    Blocking:                  
     Related:                    |  
---------------------------------+------------------------------------------
Changes (by simonmar):

  * difficulty:  => Unknown


Comment:

 `go` takes 4 arguments, but it is passed only 3 in the call.  So in fact
 `h0` is not strict here: the bang patterns only evaluate when the function
 is fully applied.  Try eta-expanding?

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



More information about the ghc-tickets mailing list