[GHC] #9343: foldl' is not a good consumer
GHC
ghc-devs at haskell.org
Mon Jul 21 17:29:54 UTC 2014
#9343: foldl' is not a good consumer
-------------------------------------+-------------------------------------
Reporter: dfeuer | Owner:
Type: bug | Status: new
Priority: normal | Milestone:
Component: libraries/base | Version: 7.8.3
Keywords: | Differential Revisions:
Operating System: Unknown/Multiple | Architecture:
Type of failure: Runtime | Unknown/Multiple
performance bug | Difficulty: Unknown
Test Case: | Blocked By:
Blocking: | Related Tickets:
-------------------------------------+-------------------------------------
Some fancy footwork went into making length a good consumer. Since `length
= foldl' (\n _ -> n + 1) 0`, I was wondering if a trick similar to the one
used for length might work for more general strict left folds.
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/9343>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list