#1117: [2,4..10] is not a good list producer
---------------------------------+------------------------------------------
 Reporter:  [EMAIL PROTECTED]  |          Owner:             
     Type:  feature request      |         Status:  new        
 Priority:  normal               |      Milestone:             
Component:  Compiler             |        Version:  6.6        
 Severity:  normal               |     Resolution:             
 Keywords:  rewrite rules        |     Difficulty:  Easy (1 hr)
 Testcase:                       |   Architecture:  Multiple   
       Os:  Multiple             |  
---------------------------------+------------------------------------------
Comment (by [EMAIL PROTECTED]):

 The function that should be changed is efdtInt in

 http://darcs.haskell.org/packages/base/GHC/Enum.lhs

 The comments acknowledge that it doesn't bother with rules and
 deforestation.

 The code that brings this up is a step on the imperative eratosthenes
 sieve algorithm:

 forM_ [2*i, 3*i .. n-1] (\j -> writeArray arr j False)

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