Safe Haskell | None |
---|---|
Language | Haskell98 |
- lintImports :: forall m. (MonadError MultipleErrors m, MonadWriter MultipleErrors m) => Module -> Env -> UsedImports -> m ()
- data Name
- type UsedImports = Map ModuleName [Name]
Documentation
lintImports :: forall m. (MonadError MultipleErrors m, MonadWriter MultipleErrors m) => Module -> Env -> UsedImports -> m () Source
Find and warn on:
- Unused import statements (qualified or unqualified)
- Unused references in an explicit import list
- Implicit imports of modules
- Implicit imports into a virtual module (unless the virtual module only has members from one module imported)
- Imports using
hiding
(this is another form of implicit importing)
Imported name used in some type or expression.
type UsedImports = Map ModuleName [Name] Source
Map of module name to list of imported names from that module which have been used.