Don't lint erroneous programs.

Authored by goldfire on Nov 1 2018, 5:03 PM.

Description

Don't lint erroneous programs.

newFamInst lints its types. This is good. But it's not so good
when there have been errors and thus recovery tycons are about.
So we now don't.

Fixes Trac #15796.

Test case: typecheck/should_fail/T15796

(cherry picked from commit 1f72a1c81368e34387aac38c0b1c59521cec58ec)

Details

Committed
bgamariNov 2 2018, 10:00 AM
Parents
rGHC7a439e7b13f3: Fix #15787 by squashing a coercion hole.
Branches
Unknown
Tags
Unknown
References
tag: ghc-8.6.2-release