| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Importify.Resolution.Qualified
Description
Utilities to remove unused qualified imports
- removeUnusedQualifiedImports :: [ImportDecl l] -> Maybe (ModuleHead l) -> [Scoped l] -> [ModuleName ()] -> [ImportDecl l]
Documentation
removeUnusedQualifiedImports Source #
Arguments
| :: [ImportDecl l] | |
| -> Maybe (ModuleHead l) | |
| -> [Scoped l] | |
| -> [ModuleName ()] | Unused |
| -> [ImportDecl l] |
Remove unused qualified as imports, i.e. in one of the next form:
import qualified Data.List
import qualified Data.List as L
import Data.List as L
This function ignores imports with explicit import lists because it
is running after stage where symbols from explicit list removed.