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

Details

Committed
goldfireNov 1 2018, 5:05 PM
Parents
rGHC74ed9c1c1b26: Actually fail in failIfEmitsConstraints
Branches
Unknown
Tags
Unknown