Refactor tcInferApps.
authorRichard Eisenberg <rae@cs.brynmawr.edu>
Mon, 24 Jul 2017 19:49:00 +0000 (15:49 -0400)
committerRichard Eisenberg <rae@cs.brynmawr.edu>
Thu, 27 Jul 2017 11:49:06 +0000 (07:49 -0400)
commit791947db6db32ef7d4772a821a0823e558e3c05b
tree5d00e1461aec8069f234856b86bd6f74ce9ef3dc
parent4239238306e911803bf61fdda3ad356fd0b42e05
Refactor tcInferApps.

With the changes caused by the fix to #12369, it is now clearer
how to rewrite tcInferApps and friends. This should change no
behavior, but it does clean up a nasty corner of the type checker.
This commit also removes some uses of substTyUnchecked.
compiler/typecheck/TcHsType.hs
compiler/types/TyCoRep.hs
compiler/types/Type.hs