hls-explicit-imports-plugin-1.0.1.2: Explicit imports plugin for Haskell Language Server
Safe HaskellNone
LanguageHaskell2010

Ide.Plugin.ExplicitImports

Synopsis

Documentation

descriptor :: PluginId -> PluginDescriptor IdeState Source #

The "main" function of a plugin

descriptorForModules Source #

Arguments

:: (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