[GHC] #1117: [2,4..10] is not a good list producer

GHC trac at galois.com
Wed Jan 24 10:41:52 EST 2007


#1117: [2,4..10] is not a good list producer
------------------------------------+---------------------------------------
    Reporter:  br1 at internet.com.uy  |       Owner:               
        Type:  feature request      |      Status:  new          
    Priority:  normal               |   Milestone:               
   Component:  Compiler             |     Version:  6.6          
    Severity:  normal               |    Keywords:  rewrite rules
  Difficulty:  Easy (1 hr)          |    Testcase:               
Architecture:  Multiple             |          Os:  Multiple     
------------------------------------+---------------------------------------
I asked about this in @ghc, and Spencer Janssen had to say "enumFromTo is
 a good producer, but apparently enumFromThenTo is not".  This means it
 doesn't fuse with good list consumers, forM_ in my case.

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


More information about the Glasgow-haskell-bugs mailing list