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-2019 Kowainik
Author Dmitrii Kovanikov, Veronika Romashkina
Maintainer Kowainik <xrom.xkov@gmail.com>
Revised Revision 1 made by shersh at Thu May 9 09:03:02 UTC 2019
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 358 total (20 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

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

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