[GHC] #7168: Loop

GHC cvs-ghc at haskell.org
Mon Aug 20 16:25:04 CEST 2012


#7168: Loop
------------------------------------------+---------------------------------
  Reporter:  bas                          |          Owner:                                  
      Type:  bug                          |         Status:  closed                          
  Priority:  normal                       |      Milestone:                                  
 Component:  Compiler                     |        Version:  7.4.1                           
Resolution:  invalid                      |       Keywords:  Lazy evaluation, Loop, Eagerness
        Os:  Unknown/Multiple             |   Architecture:  x86                             
   Failure:  Incorrect result at runtime  |     Difficulty:  Unknown                         
  Testcase:                               |      Blockedby:                                  
  Blocking:                               |        Related:                                  
------------------------------------------+---------------------------------
Changes (by pcapriotti):

  * difficulty:  => Unknown


Comment:

 To get the semantics you expect, use lazy pattern matching:

 {{{
 carefully ~(a,b) = (1, a + b)
 }}}

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



More information about the Glasgow-haskell-bugs mailing list