βSo many people consider their work a daily punishment. Whereas I love my work as a translator. Translation is a journey over a sea from one shore to the other. Sometimes I think of myself as a smuggler: I cross the frontier of language with my booty of words, ideas, images, and metaphors.β
β Amara Lakhous, Clash of Civilizations Over an Elevator in Piazza Vittorio
Haskell Source Plugin which removes unused imports automatically.
How to useπ
Add smuggler
to the dependencies of your project. Then add the following compiler options:
-fplugin=Smuggler.Plugin
Lovely addition to this package is that it automatically supports on-the-fly feature if you use it with ghcid
. Smuggler 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.6.5
cabal >= 3.0
orstack >= 2.0
Cabal: How to build?π
cabal update
cabal build
Stack: How to build?π
stack build
Run testsπ
cabal test --enable-tests