importify-1.0: Tool for haskell imports refactoring

Safe HaskellNone
LanguageHaskell2010

Importify.Resolution.Implicit

Description

Resolvers to remove implicit imports.

Synopsis

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.