smuggler: GHC Source Plugin that helps to manage imports

[ development, library, mpl, program, refactoring ] [ Propose Tags ] [ Report a vulnerability ]

Usage

Add smuggler to the dependencies of your project.

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


[Skip to Readme]

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

Package maintainers

For package maintainers and hackage trustees

Candidates

Versions [RSS] 0.0.0, 0.0.1, 0.1.0
Change log CHANGELOG.md
Dependencies base (>=4.12 && <5), bytestring (>=0.10 && <0.11), containers (>=0.5 && <0.7), filepath (>=1.4 && <1.5), 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]
Tested with ghc ==8.6.1
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 2019-05-09T09:03:02Z
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 2018-09-24T05:12:12Z
Distributions
Executables play-smuggler
Downloads 1547 total (1 in the last 30 days)
Rating 2.0 (votes: 1) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs not available [build log]
All reported builds failed as of 2018-09-24 [all 2 reports]

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