Remove "Safe mode" check for Coercible instances
We assume that library authors supply correct role annotations for their types, and therefore we do not need to check for the availability of data constructors in Safe mode. See discussion in #8725. This effectively fixes #8827 and #8826. (cherry picked from commit 59722295)
Showing
- compiler/typecheck/TcInteract.lhs 5 additions, 16 deletionscompiler/typecheck/TcInteract.lhs
- testsuite/tests/typecheck/should_fail/TcCoercibleFailSafe.hs 0 additions, 11 deletionstestsuite/tests/typecheck/should_fail/TcCoercibleFailSafe.hs
- testsuite/tests/typecheck/should_fail/TcCoercibleFailSafe.stderr 0 additions, 8 deletions...te/tests/typecheck/should_fail/TcCoercibleFailSafe.stderr
- testsuite/tests/typecheck/should_fail/all.T 0 additions, 1 deletiontestsuite/tests/typecheck/should_fail/all.T
Loading
Please register or sign in to comment