Changes between Version 5 and Version 6 of Commentary/Compiler/WiredIn
- Timestamp:
- 09/12/06 09:10:26 (7 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Commentary/Compiler/WiredIn
v5 v6 1 1 2 2 3 3 = Wired-in and known-key things = … … 43 43 == Initialisation == 44 44 45 When reading an interface file, GHC might come across "GHC.Base.Eq", which is the name of the `Eq` class. How does it match up this occurrence in the interface file with `eqClassName` defined in `PrelNames`? Because the global name cache maintained by the renamer is initialise dwith all the known-key names. This is done by the (hard-to-find) function `HscMain.newHscEnv`:45 When reading an interface file, GHC might come across "GHC.Base.Eq", which is the name of the `Eq` class. How does it match up this occurrence in the interface file with `eqClassName` defined in `PrelNames`? Because the global name cache maintained by the renamer is initialise with all the known-key names. This is done by the (hard-to-find) function `HscMain.newHscEnv`: 46 46 {{{ 47 47 newHscEnv :: DynFlags -> IO HscEnv
