Make list monad operations fuse
We like to think that do {x <- xs; y <- f x ; return g y}
is the same as [g y | x <- xs, y <- f x]
, but the former does not fuse nearly as well. Let's fix that.
Trac metadata
Trac field | Value |
---|---|
Version | 7.9 |
Type | Task |
TypeOfFailure | OtherFailure |
Priority | normal |
Resolution | Unresolved |
Component | Core Libraries |
Test case | |
Differential revisions | |
BlockedBy | |
Related | |
Blocking | |
CC | core-libraries-committee@haskell.org |
Operating system | |
Architecture |