Remove "Safe mode" check for Coercible instances
authorRichard Eisenberg <eir@cis.upenn.edu>
Thu, 13 Mar 2014 18:16:37 +0000 (14:16 -0400)
committerRichard Eisenberg <eir@cis.upenn.edu>
Fri, 14 Mar 2014 03:34:55 +0000 (23:34 -0400)
commit59722295bb8da8f01d37356fbed6aef7321a8195
treef221a2bf5e362891140f8c76d1a238e49bfc5c90
parent210ccabc9489bfbf814939e8b45646c8d0c7ce5f
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.
compiler/typecheck/TcInteract.lhs
testsuite/tests/typecheck/should_fail/TcCoercibleFailSafe.hs [deleted file]
testsuite/tests/typecheck/should_fail/TcCoercibleFailSafe.stderr [deleted file]
testsuite/tests/typecheck/should_fail/all.T