Commit c7182a5c authored by Simon Peyton Jones's avatar Simon Peyton Jones Committed by Marge Bot

Care with implicit-parameter superclasses

Two bugs, #18627 and #18649, had the same cause: we were not
account for the fact that a constaint tuple might hide an implicit

The solution is not hard: look for implicit parameters in
superclasses.  See Note [Local implicit parameters] in

Then we use this new function in two places

* The "short-cut solver" in GHC.Tc.Solver.Interact.shortCutSolver
  which simply didn't handle implicit parameters properly at all.
  This fixes #18627

* The specialiser, which should not specialise on implicit parameters
  This fixes #18649

There are some lingering worries (see Note [Local implicit
parameters]) but things are much better.
parent 8610bcbe
Pipeline #24714 failed with stages
in 311 minutes and 31 seconds