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

GHC trac at galois.com
Wed Jan 24 10:53:02 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               |     Resolution:             
 Keywords:  rewrite rules        |     Difficulty:  Easy (1 hr)
 Testcase:                       |   Architecture:  Multiple   
       Os:  Multiple             |  
---------------------------------+------------------------------------------
Comment (by kirsten):

 enumFromThenTo looks like a good producer to me (it's defined in terms of
 map, or at least the default implementation is, just like the default
 implementations of enumFrom, enumFromThen, and enumFromTo). Can you be
 more specific about what problem you're seeing? If you have code using it
 that you would expect to be deforested that isn't, could you post a test
 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