[Haskell-cafe] Laziness bug in Data.List.intersperse (was:
ANNOUNCE: text 0.8.0.0, fast Unicode text support)
daniel.is.fischer at web.de
Wed Sep 1 16:00:29 EDT 2010
On Wednesday 01 September 2010 21:29:47, Daniel Fischer wrote:
> that's where you definitely get a space leak, because
> intersperse :: a -> [a] -> [a]
> intersperse _  = 
> intersperse _ [x] = [x]
> intersperse sep (x:xs) = x : sep : intersperse sep xs
> isn't lazy enough.
Ticket created, http://hackage.haskell.org/trac/ghc/ticket/4282
I'm not keen on subscribing to libraries@ to follow the official proposal
process, any takers?
More information about the Haskell-Cafe