Improvements in SpecConstr
-
Allow under-saturated calls to specialise See Note [SpecConstr call patterns] This just allows a bit more specialisation to take place.
-
Don't discard calls from un-specialised RHSs. This was a plain bug in
specialise
, again leading to loss of specialisation. Refactoring yields anotherwise
case that is easier to grok. -
I refactored CallPat to become a proper data type, not a tuple.
All this came up when I was working on eta-reduction. The ticket is #19672 (closed).