#4507: Data.List.sum and Data.List.product unnecessarily inefficient
-----------------------------+----------------------------------------------
  Reporter:  pozorvlak       |          Owner:                                 
      Type:  bug             |         Status:  closed                         
  Priority:  normal          |      Milestone:                                 
 Component:  libraries/base  |        Version:  7.0.1                          
Resolution:  wontfix         |       Keywords:  Data.List, sum, product, foldl'
  Testcase:                  |      Blockedby:                                 
Difficulty:                  |             Os:  Unknown/Multiple               
  Blocking:                  |   Architecture:  Unknown/Multiple               
   Failure:  None/Unknown    |  
-----------------------------+----------------------------------------------

Comment(by pozorvlak):

 I am confused. The Haskell 2010 Language Report section on Data.List
 
(http://www.haskell.org/onlinereport/haskell2010/haskellch20.html#x28-23100020.3)
 doesn't say anything about the strictness of sum or product that I can
 see: the Haskell 1998 Report doesn't mention Data.List at all. Where
 should I be looking? Note that I'm talking about the sum and product
 defined in Data.List, not the ones in the Prelude.

 [I tried again with -O, and performance was indeed similar. Thanks!]

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