Tidy and trim the type environment in mkBootModDetails
Should fix Trac #1833 We were failing to trim the type envt in mkBootModDetails, so several functions all called (*), for example, were getting into the interface. Result chaos. It only actually bites when we do the retyping-loop thing, which is why it's gone so long without a fix.
Showing with 46 additions and 24 deletions