Skip to content

Take care to not eta-reduce jumps in CorePrep

Matheus Magalhães requested to merge zardyh/ghc:wip/core-prep-eta-joins into master

In #17429 (closed) a bug came up where CorePrep was too eager to eta-reduce uses of JoinIds, leading to a Lint failure.

This patch fixes that issue by making tryEtaReducePrep consider JoinIds not OK-for-eta-reduction in the same way it treats Ids that respond True to hasNoBinding.

Merge request reports