[commit: packages/base] master: Implement foldl with foldr (b63face)

Joachim Breitner mail at joachim-breitner.de
Mon Feb 17 11:03:08 UTC 2014


Am Montag, den 17.02.2014, 10:56 +0000 schrieb Simon Marlow:
> Ah, I realise it's ok so long as the original definition of foldl/foldl' 
> gets optimised to the right thing.  If that's the case just ignore me.

they should be. There are cases when the compiler is not smart enough to
produce great code i.e. folding over a list generated from a tree. But
Takano’s proposed fusion extension
(https://github.com/takano-akio/ww-fusion) will likely take care of


Joachim “nomeata” Breitner
  mail at joachim-breitner.dehttp://www.joachim-breitner.de/
  Jabber: nomeata at joachim-breitner.de  • GPG-Key: 0x4743206C
  Debian Developer: nomeata at debian.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: This is a digitally signed message part
URL: <http://www.haskell.org/pipermail/ghc-devs/attachments/20140217/897877f1/attachment.sig>

More information about the ghc-devs mailing list