smuggler: GHC Source Plugin that helps to manage imports

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

Usage

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 CHANGELOG.md
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.5.8.0 && <0.6), hash-store (>=0.1.0 && <0.2), smuggler, unordered-containers (>=0.2.7 && <0.3) [details]
License MPL-2.0
Copyright 2018 Kowainik
Author Kowainik
Maintainer xrom.xkov@gmail.com
Category Development, Refactoring
Home page https://github.com/kowainik/smuggler
Bug tracker https://github.com/kowainik/smuggler/issues
Source repo head: git clone git@github.com:kowainik/smuggler.git
Uploaded by shersh at Mon Sep 24 05:12:12 UTC 2018
Distributions NixOS:0.1.0
Executables play-smuggler
Downloads 226 total (32 in the last 30 days)
Rating 2.0 (votes: 1) [estimated by rule of succession]
Your Rating
  • λ
  • λ
  • λ
Status Hackage Matrix CI
Docs not available [build log]
All reported builds failed as of 2018-09-24 [all 2 reports]

Modules

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

Downloads

Maintainer's Corner

For package maintainers and hackage trustees


Readme for smuggler-0.1.0

[back to package description]

smuggler

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:

-fplugin=Smuggler.Plugin

For contributors

Requirements:

  • 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