Skip to content

A GHC source plugin that replaces current imports with a minimal set, removing unused ones.

License

Notifications You must be signed in to change notification settings

jrp2014/MinImports

Repository files navigation

MinImports

GitHub CI Build status Windows build status Hackage MIT license

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.

How to use

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'

For contributors

Requirements:

  • ghc-8.8.3
  • cabal >= 3.0

Cabal: How to build?

cabal update
cabal build

References

About

A GHC source plugin that replaces current imports with a minimal set, removing unused ones.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published