Tools for analyzing imports. #
Provides the commands
#redundant_importswhich lists any transitively redundant imports in the current module.#min_importswhich attempts to construct a minimal set of imports for the declarations in the current file. (Must be run at the end of the file. Tactics and macros may result in incorrect output.)#find_home declsuggests files higher up the import hierarchy to whichdeclcould be moved.#import_diff foo bar ...computes the new transitive imports that are added to a given file when modulesfoo, bar, ...are added to the set of imports of the file.