Safe Haskell | None |
---|---|
Language | Haskell2010 |
- data FrontendPlugin = FrontendPlugin {
- frontend :: FrontendPluginAction
- defaultFrontendPlugin :: FrontendPlugin
- data Plugin = Plugin {
- installCoreToDos :: [CommandLineOption] -> [CoreToDo] -> CoreM [CoreToDo]
- tcPlugin :: [CommandLineOption] -> Maybe TcPlugin
- type CommandLineOption = String
- defaultPlugin :: Plugin
Documentation
data FrontendPlugin Source #
FrontendPlugin | |
|
Plugin
is the core compiler plugin data type. Try to avoid
constructing one of these directly, and just modify some fields of
defaultPlugin
instead: this is to try and preserve source-code
compatibility when we add fields to this.
Nonetheless, this API is preliminary and highly likely to change in the future.
Plugin | |
|
type CommandLineOption = String Source #
Command line options gathered from the -PModule.Name:stuff syntax are given to you as this type
defaultPlugin :: Plugin Source #
Default plugin: does nothing at all! For compatibility reasons you should base all your plugin definitions on this default value.