A GHC source plugin that replaces current imports with a minimal set, removing unused ones.
It is like smuggler but it depends on GHC 8.8.3 and newer.
Add minimports to the dependencies of your project. Then add the following
compiler options (ghc-options):
-fplugin=MinImportsPlugin
This package automatically supports on-the-fly
feature if you use it with ghcid. MinImports doesn't perform file changes when
there are no unused imports. So you can just run ghcid as usual:
ghcid --command='cabal repl'
Requirements:
ghc-8.8.3cabal >= 3.0
cabal update
cabal build