Add fusion rules for the zipWith functions in base (#15263)

Authored by TDecki on Thu, Dec 6, 2:32 PM.

Description

Add fusion rules for the zipWith functions in base (Trac #15263)

This patch will allow zip3 and zipWith3 in GHC.List as well
as zipWith4, zipWith5, zipWith6 and zipWith7 in Data.OldList to fuse.

These rules are kept in a similar style as the rules for zip and zipWith.

Added a corresponding test case.

Test Plan: validate

Reviewers: hvr, bgamari, simonpj

Reviewed By: simonpj

Subscribers: simonpj, rockbmb, rwbarton, carter

GHC Trac Issues: Trac #15263

Differential Revision: https://phabricator.haskell.org/D5241

Details

Committed
bgamariThu, Dec 6, 2:33 PM
Reviewer
simonpj
Differential Revision
D5241: Add fusion rules for the zipWith functions in base (#15263)
Parents
rGHC1ef90f990da9: Windows: Use the "big" PE object format on amd64
Branches
Unknown
Tags
Unknown