Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- descriptor :: PluginId -> PluginDescriptor IdeState
- descriptorForModules :: (ModuleName -> Bool) -> PluginId -> PluginDescriptor IdeState
- extractMinimalImports :: Maybe HscEnvEq -> Maybe TcModuleResult -> IO ([LImportDecl GhcRn], Maybe [LImportDecl GhcRn])
- within :: Range -> SrcSpan -> Bool
Documentation
descriptor :: PluginId -> PluginDescriptor IdeState Source #
The "main" function of a plugin
:: (ModuleName -> Bool) | Predicate to select modules that will be annotated |
-> PluginId | |
-> PluginDescriptor IdeState |
extractMinimalImports :: Maybe HscEnvEq -> Maybe TcModuleResult -> IO ([LImportDecl GhcRn], Maybe [LImportDecl GhcRn]) Source #
Use the ghc api to extract a minimal, explicit set of imports for this module