[GHC] #5538: Foldable typeclass: make foldl' and foldr' class methods
GHC
cvs-ghc at haskell.org
Sat Oct 8 13:15:54 CEST 2011
#5538: Foldable typeclass: make foldl' and foldr' class methods
---------------------------------+------------------------------------------
Reporter: guest | Owner:
Type: task | Status: new
Priority: normal | Component: libraries/base
Version: 7.2.1 | Keywords:
Testcase: | Blockedby:
Os: Unknown/Multiple | Blocking:
Architecture: Unknown/Multiple | Failure: None/Unknown
---------------------------------+------------------------------------------
Change the {{{Data.Foldable}}} module: move {{{foldl'}}} and {{{foldr'}}}
functions into the {{{Foldable}}} type
class so they can be defined efficiently in the instance definitions.
See the discussion:
http://www.haskell.org/pipermail/libraries/2011-June/016488.html
The patch from the initial message is attached.
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/5538>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the Glasgow-haskell-bugs
mailing list