smuggler: GHC Source Plugin that helps to manage imports

[ development, library, mpl, program, refactoring ] [ Propose Tags ]


Add smuggler to the dependencies of your project.

Then add the following options: -fplugin=Smuggler.Plugin

[Skip to Readme]
Versions [faq] 0.0.0, 0.0.1, 0.1.0
Change log
Dependencies base (>=4.12 && <5), bytestring (==0.10.*), containers (>=0.5 && <0.7), filepath (==1.4.*), ghc (>=8.6.0 && <8.7), ghc-exactprint (>= && <0.6), hash-store (>=0.1.0 && <0.2), smuggler, unordered-containers (>=0.2.7 && <0.3) [details]
License MPL-2.0
Copyright 2018-2019 Kowainik
Author Dmitrii Kovanikov, Veronika Romashkina
Maintainer Kowainik <>
Revised Revision 1 made by shersh at 2019-05-09T09:03:02Z
Category Development, Refactoring
Home page
Bug tracker
Source repo head: git clone
Uploaded by shersh at 2018-09-24T05:12:12Z
Distributions NixOS:0.1.0
Executables play-smuggler
Downloads 1105 total (9 in the last 30 days)
Rating 2.0 (votes: 1) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Hackage Matrix CI
Docs not available [build log]
All reported builds failed as of 2018-09-24 [all 2 reports]


  • Smuggler
    • Smuggler.Anns
    • Smuggler.Loc
    • Smuggler.Parser
    • Smuggler.Plugin


Note: This package has metadata revisions in the cabal description newer than included in the tarball. To unpack the package including the revisions, use 'cabal get'.

Maintainer's Corner

For package maintainers and hackage trustees

Readme for smuggler-0.1.0

[back to package description]


smuggler-logo Hackage Build status MPL-2.0 license

“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:


For contributors


  • ghc-8.6.1

Cabal: How to build?

$ cabal new-update
$ cabal new-build

Stack on MacOS: How to build?

$ STACK_YAML=stack-mac-8.6.1.yaml stack build

Run tests

$ cabal new-test --allow-newer