-
Simon Peyton Jones authored
------------------------------------- Import more rules, and fix usage info ------------------------------------- 1. A rule wasn't being slurped in that should have been. Reason: wordToWord32# was in the 'TypeEnv', because it's a primop, so the renamer thought it was already slurped in, which is true. But it forgot to use the TypeEnv as a source of gates when deciding which rules to pull in. Result: a useful rule for the primop wasn't making it in. Thanks to Marcin for isolating this one. 2. RnIfaces.recordTypeEnvSlurp (was recordVSlurp) was blindly adding the name to the iVSlurp set, but the iVSlurp set is supposed to contain only "big" names (tycons, classes, and Ids that aren't data cons, class ops etc). We need to get the big name from the thing. Mildly tiresomely, this means we have to keep the Class inside the TyCon derived from that class. Hence updates to TyCon and Class.
506278ab