Safe Haskell | None |
---|---|
Language | Haskell2010 |
Resolvers to remove implicit imports.
- collectUnusedImplicitImports :: (Symbol -> Bool) -> [InScoped ImportDecl] -> [ModuleName ()]
- isKnownImport :: Environment -> ImportDecl l -> Bool
- removeImplicitImports :: [ModuleName ()] -> [ImportDecl l] -> [ImportDecl l]
Documentation
collectUnusedImplicitImports :: (Symbol -> Bool) -> [InScoped ImportDecl] -> [ModuleName ()] Source #
Collect names of unused implicit imports.
isKnownImport :: Environment -> ImportDecl l -> Bool Source #
Checks if module symbols were cached. We don't want to remove unknown imports we just want to not touch them.
removeImplicitImports :: [ModuleName ()] -> [ImportDecl l] -> [ImportDecl l] Source #
Remove all implicit import declarations specified by given list of module names.