Changes between Version 43 and Version 44 of NewPlugins


Ignore:
Timestamp:
Jan 22, 2012 11:34:24 AM (4 years ago)
Author:
SimonHengel
Comment:

Properly link to ModGuts in API documentation

Legend:

Unmodified
Added
Removed
Modified
  • NewPlugins

    v43 v44  
    5858More specifically, a `CoreToDo` describes some sort of particular pass over a Core program that can be invoked as many times as you like. For reference, `defaultGentlSimplToDo` is constructed using `CoreDoSimplify`. In this case, `cse_pass` is constructed using `CoreDoPluginsPass`, which takes a name and a function of type `ModGuts -> CoreM ModGuts` - `ModGuts` is a type that represents the 1 module GHC is compiling at any time. You normally want to manipulate the field `mg_binds` of a `ModGuts`, which contains all the top-level bindings for the module.
    5959
    60 `bindsOnlyPass` is a function that merely lifts a function over binders to a function over ModGuts. It's the simple case where nothing else from the `ModGuts` is needed.
     60`bindsOnlyPass` is a function that merely lifts a function over binders to a function over [http://www.haskell.org/ghc/docs/latest/html/libraries/ghc-7.2.2/HscTypes.html#t:ModGuts ModGuts]. It's the simple case where nothing else from the `ModGuts` is needed.
    6161
    6262More details on plugins for end-users can be found in the users guide.