#5569: Ineffective seq/BangPatterns
----------------------------------+-----------------------------------------
    Reporter:  daniel.is.fischer  |        Owner:  igloo                  
        Type:  bug                |       Status:  new                    
    Priority:  normal             |    Milestone:  7.4.1                  
   Component:  Compiler           |      Version:  7.2.1                  
    Keywords:                     |     Testcase:                         
   Blockedby:                     |   Difficulty:                         
          Os:  Unknown/Multiple   |     Blocking:                         
Architecture:  Unknown/Multiple   |      Failure:  Runtime performance bug
----------------------------------+-----------------------------------------
Changes (by igloo):

  * owner:  => igloo
  * milestone:  => 7.4.1


Comment:

 The bang on the first argument is redundant: Pattern matching is left-to-
 right, so `sm` is only forced if the first argument is `0`.

 But with your code I'm getting a stack overflow with release builds, but
 not validate builds, of 7.2.2. We should investigate.

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/5569#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