diff options
author | David Feuer <David.Feuer@gmail.com> | 2014-11-13 21:12:05 +0100 |
---|---|---|
committer | Herbert Valerio Riedel <hvr@gnu.org> | 2014-11-13 21:15:33 +0100 |
commit | 603b7be7bd3abaf0e2c210e8d9015b1d613b4715 (patch) | |
tree | 2a2256421922ff4ed3b93205f7c2c30cd04d32e1 /.mailmap | |
parent | 638991114f9358ee78f32d5d5c98bb3001b52ec9 (diff) | |
download | haskell-603b7be7bd3abaf0e2c210e8d9015b1d613b4715.tar.gz |
Implement amap/coerce for Array (re #9796)
Implement an `amap`/`coerce` rule in `GHC.Arr` to match the
`map`/`coerce` rule in GHC.Base.
In order to do so, delay inlining `amap` until phase 1.
To prevent the inlining delay from causing major inefficiencies due to
missed list fusion, rewrite `amap` to avoid relying on list fusion. This
has the extra benefit of reducing the size of the compiled amap code by
skipping the impossible case of an array with a negative size.
Reviewed By: nomeata
Differential Revision: https://phabricator.haskell.org/D471
Diffstat (limited to '.mailmap')
0 files changed, 0 insertions, 0 deletions