Changes between Version 18 and Version 19 of Commentary/PrimOps


Ignore:
Timestamp:
Feb 27, 2012 3:58:07 PM (2 years ago)
Author:
guest
Comment:

Added instructions for adding new primtypes

Legend:

Unmodified
Added
Removed
Modified
  • Commentary/PrimOps

    v18 v19  
    101101   * `yourpackage/TheCode.hs`: use `foreign import prim` to import the primops. 
    102102 
     103In addition, if new primtypes are being added, the following files need to be updated: 
     104  * [[GhcFile(utils/genprimopcode/Main.hs)]] -- extend ppType :: Type -> String function 
     105   
     106  * [[GhcFile(compiler/prelude/PrelNames.lhs)]] -- add a new unique id using mkPreludeTyConUnique 
     107 
     108  * [[GhcFile(compiler/prelude/TysPrim.lhs)]] -- TODO 
     109 
    103110See also AddingNewPrimitiveOperations, a blow-by-blow description of the process for adding a new out-of-line primop from someone who went through the process. 
    104111