[GHC] #7436: Derived Foldable and Traversable instances become extremely inefficient due to eta-expansion

GHC cvs-ghc at haskell.org
Fri Nov 23 15:45:13 CET 2012


#7436: Derived Foldable and Traversable instances become extremely inefficient due
to eta-expansion
---------------------------------+------------------------------------------
    Reporter:  shachaf           |       Owner:                         
        Type:  bug               |      Status:  patch                  
    Priority:  normal            |   Milestone:                         
   Component:  Compiler          |     Version:  7.6.1                  
    Keywords:                    |          Os:  Unknown/Multiple       
Architecture:  Unknown/Multiple  |     Failure:  Runtime performance bug
  Difficulty:  Unknown           |    Testcase:                         
   Blockedby:                    |    Blocking:                         
     Related:                    |  
---------------------------------+------------------------------------------
Changes (by twanvl):

  * status:  new => patch


Comment:

 I have done what I described in my previous comment, and attached a patch.

 I have also added foldMap to the generated Foldable instance, which I
 agree is a more natural function.

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



More information about the Glasgow-haskell-bugs mailing list