Fix #13333 by fixing the covar's type in ctEvCoercion
authorRichard Eisenberg <rae@cs.brynmawr.edu>
Sun, 23 Apr 2017 14:24:30 +0000 (10:24 -0400)
committerBen Gamari <ben@smart-cactus.org>
Wed, 3 May 2017 03:07:27 +0000 (23:07 -0400)
commit09bf135ace55ce2572bf4168124d631e386c64bb
tree452a20a625db3c0fa17c58b0295b8bda3c573bf5
parent466803a0e9628ccd5feb55d062e141e0972fc19c
Fix #13333 by fixing the covar's type in ctEvCoercion

The change is noted in Note [Given in ctEvCoercion]. This patch
also adds a bit more commentary to TcFlatten, documenting some
key invariants of the flattening algorithm. While in the area,
I also removed some stale commentary from TcCanonical.
compiler/typecheck/TcCanonical.hs
compiler/typecheck/TcFlatten.hs
compiler/typecheck/TcRnTypes.hs
compiler/typecheck/TcSMonad.hs
testsuite/tests/typecheck/should_compile/T13333.hs [new file with mode: 0644]
testsuite/tests/typecheck/should_compile/all.T