Do not create extra evidence given/derived variables in the Refl case of rewriteCtFlavor
authorSimon Peyton Jones <simonpj@microsoft.com>
Thu, 4 Oct 2012 16:53:07 +0000 (17:53 +0100)
committerSimon Peyton Jones <simonpj@microsoft.com>
Thu, 4 Oct 2012 16:53:07 +0000 (17:53 +0100)
commitb442ad94c75aa6f8ad89041cb4fb1e16265b1e45
tree6a1c91248fa4767d9bd2aa7a02001a660412d40e
parent00cb878905c1bf709dd3a3bf7be6e743ee0eb059
Do not create extra evidence given/derived variables in the Refl case of rewriteCtFlavor

Previously this optimisation only applied in the Wanted case,
but it works perfectly well in the others too, and saves
redundant evidence bindings.
compiler/typecheck/TcSMonad.lhs