importify-1.0: Tool for haskell imports refactoring

Safe HaskellNone
LanguageHaskell2010

Importify.Resolution.Explicit

Description

Resolvers for removing symbols from explicit import lists.

Synopsis

Documentation

collectUnusedSymbolsBy Source #

Arguments

:: (Symbol -> Bool)

True iff Symbol is used

-> Table

Mapping from imported names to their symbols

-> [Symbol]

Returns list of unused symbols from Table

Collect symbols unused in annotations.

resolveModules :: (Data l, Eq l) => [Module l] -> [(ModuleName (), [Symbol])] Source #

Gather all symbols for given list of Modules.

symbolUsedIn :: Symbol -> [Scoped l] -> Bool Source #

Checks if Symbol is used inside annotations. This function needed to remove unused imports.