Add rule mapFB c (λx.x) = c
authorJoachim Breitner <mail@joachim-breitner.de>
Mon, 6 Mar 2017 22:30:52 +0000 (17:30 -0500)
committerBen Gamari <ben@smart-cactus.org>
Mon, 6 Mar 2017 23:51:03 +0000 (18:51 -0500)
commit2fa44217c1d9722227297eefb0d6c6aed7e128ca
tree75b6650d7a7e54e6f1a2535ec3bdf86167af8827
parent2f115a13a0fab84f6bc384c9b6159f29ea038d36
Add rule mapFB c (λx.x) = c

Test Plan: exended T2110 with a case for that.

Reviewers: austin, hvr, dfeuer, bgamari

Reviewed By: dfeuer

Subscribers: dfeuer, thomie

Differential Revision: https://phabricator.haskell.org/D3275
libraries/base/GHC/Base.hs
testsuite/tests/simplCore/should_run/T2110.hs
testsuite/tests/simplCore/should_run/T2110.stdout