Changes between Version 5 and Version 6 of Commentary/Compiler/WiredIn


Ignore:
Timestamp:
Sep 12, 2006 4:10:26 PM (9 years ago)
Author:
simonpj
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Commentary/Compiler/WiredIn

    v5 v6  
    1 
     1 
    22
    33= Wired-in and known-key things =
     
    4343== Initialisation ==
    4444
    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 initialised with all the known-key names.  This is done by the (hard-to-find) function `HscMain.newHscEnv`:
     45When 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`:
    4646{{{
    4747newHscEnv :: DynFlags -> IO HscEnv