Skip to content

Remove second tcLookupTcTyCon in tcDataDefn

Vladislav Zavialov requested to merge wip/tctc-extra-lookup into master

Before this patch, tcDataDefn used to call tcLookupTcTyCon twice in a row:

  1. in bindTyClTyVars itself
  2. in the continuation passed to it

Now bindTyClTyVars passes the TcTyCon to the continuation, making the second lookup unnecessary.

Merge request reports