[GHC] #4282: Data.List.intersperse not lazy enough
GHC
cvs-ghc at haskell.org
Thu Sep 16 11:48:25 EDT 2010
#4282: Data.List.intersperse not lazy enough
---------------------------------------------------+------------------------
Reporter: daniel.is.fischer | Owner:
Type: proposal | Status: new
Priority: normal | Milestone:
Component: libraries/base | Version: 6.12.3
Keywords: intersperse, laziness, intercalate | Testcase:
Blockedby: | Difficulty:
Os: Unknown/Multiple | Blocking:
Architecture: Unknown/Multiple | Failure: Other
---------------------------------------------------+------------------------
Changes (by daniel.is.fischer):
* keywords: intersperse, laziness => intersperse, laziness, intercalate
Comment:
I've forgotten to explicitly mention that this change would also change
the behaviour of intercalate from
{{{
intercalate sep (xs : _|_) = _|_
}}}
to
{{{
intercalate sep (xs : _|_) = xs ++ _|_
}}}
which I also deem desirable and hence include in the proposal.
Thanks to Duncan for pointing out the omission.
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/4282#comment:7>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the Glasgow-haskell-bugs
mailing list