Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- descriptor :: 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
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