#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

_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

Reply via email to