Tiny refactor to tcExtendRecEnv
authorSimon Peyton Jones <simonpj@microsoft.com>
Thu, 20 Dec 2018 12:41:14 +0000 (12:41 +0000)
committerSimon Peyton Jones <simonpj@microsoft.com>
Fri, 21 Dec 2018 13:00:14 +0000 (13:00 +0000)
commit66ce7de15dbc594e6890b5651dba3aa669c8d5fc
treeff8fd5801c91a5733aa0b8e2ddd02d7df1e0030a
parent28188e06b4953f589c7cd442ae14787bc74cabf8
Tiny refactor to tcExtendRecEnv

In tcExtendRecEnv, there is no need to us setGlobalTypeEnv
(which side-effects the tcg_type_env_var).  tcExtendRecEnv
is used only when kind-checking a group of type/class decls
and no knot-tying via tcg_type_env_var is needed.

There is no change in functionality.
compiler/typecheck/TcEnv.hs