Skip to content

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

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages