Skip to content
This repository was archived by the owner on Nov 7, 2020. It is now read-only.

Commit 17ad48f

Browse files
authored
[#29] Improve documentation (#44)
* [#29] Improve documentation * Fix review comments
1 parent 8f92c21 commit 17ad48f

File tree

4 files changed

+56
-30
lines changed

4 files changed

+56
-30
lines changed

CHANGELOG.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,17 @@ Change log
44
smuggler uses [PVP Versioning][1].
55
The change log is available [on GitHub][2].
66

7+
0.1.0
8+
=====
9+
10+
* [#29](https://github.com/kowainik/smuggler/issues/29)
11+
Improve documentation.
12+
* [#43](https://github.com/kowainik/smuggler/issues/43)
13+
Remove `cabal.project` (there's no need in it anymore).
14+
715
0.0.0
816
=====
917
* Initially created.
1018

1119
[1]: https://pvp.haskell.org
1220
[2]: https://github.com/kowainik/smuggler/releases
13-

README.md

Lines changed: 28 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,45 @@
11
# smuggler
22

3+
![smuggler-logo](https://user-images.githubusercontent.com/4276606/45937457-c2715c00-bff2-11e8-9766-f91051d36ffe.png)
34
[![Hackage](https://img.shields.io/hackage/v/smuggler.svg)](https://hackage.haskell.org/package/smuggler)
45
[![Build status](https://secure.travis-ci.org/kowainik/smuggler.svg)](https://travis-ci.org/kowainik/smuggler)
56
[![MPL-2.0 license](https://img.shields.io/badge/license-MPL--2.0-blue.svg)](https://github.com/kowainik/smuggler/blob/master/LICENSE)
67

7-
Haskell Compiler Plugin which removes unused imports automatically.
8+
> “So many people consider their work a daily punishment. Whereas I love my work
9+
> as a translator. Translation is a journey over a sea from one shore to the
10+
> other. Sometimes I think of myself as a smuggler: I cross the frontier of
11+
> language with my booty of words, ideas, images, and metaphors.”
12+
>
13+
> ― Amara Lakhous, Clash of Civilizations Over an Elevator in Piazza Vittorio
814
9-
## Build instructions
15+
Haskell Source Plugin which removes unused imports automatically.
16+
17+
## How to use
18+
19+
Add `smuggler` to the dependencies of your project. Then add the following
20+
compiler options:
21+
22+
```
23+
-fplugin=Smuggler.Plugin
24+
```
25+
26+
## For contributors
1027

1128
Requirements:
1229

13-
* `ghc >= ghc-8.6.1-alpha2`
30+
* `ghc-8.6.1`
1431

15-
### Build project
32+
### Cabal: How to build?
1633

1734
```shell
1835
$ cabal new-update
19-
$ cabal new-build --allow-newer
36+
$ cabal new-build
37+
```
38+
39+
#### Stack on MacOS: How to build?
40+
41+
```shell
42+
$ STACK_YAML=stack-mac-8.6.1.yaml stack build
2043
```
2144

2245
### Run tests

cabal.project

Lines changed: 0 additions & 10 deletions
This file was deleted.

smuggler.cabal

Lines changed: 20 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,14 @@
1+
cabal-version: 2.0
12
name: smuggler
2-
version: 0.0.1
3-
synopsis: Smuggling
4-
description: GHC compiler plugin which helps to manage imports
3+
version: 0.1.0
4+
synopsis: GHC Source Plugin that helps to manage imports
5+
description:
6+
== Usage
7+
.
8+
Add @smuggler@ to the dependencies of your project.
9+
.
10+
Then add the following options: @-fplugin=Smuggler.Plugin@
11+
512
homepage: https://github.com/kowainik/smuggler
613
bug-reports: https://github.com/kowainik/smuggler/issues
714
license: MPL-2.0
@@ -13,7 +20,6 @@ category: Development, Refactoring
1320
build-type: Simple
1421
extra-doc-files: README.md
1522
, CHANGELOG.md
16-
cabal-version: 2.0
1723
tested-with: GHC == 8.6.1
1824

1925
source-repository head
@@ -30,14 +36,14 @@ library
3036
-- Smuggler.Import
3137
-- Smuggler.Name
3238

33-
build-depends: base >= 4.9 && < 5
34-
, bytestring >= 0.10
35-
, containers >= 0.5
36-
, filepath >= 1.4
37-
, ghc >= 8.6.0
38-
, ghc-exactprint >= 0.5.7.0
39-
, hash-store >= 0.1.0
40-
, unordered-containers >= 0.2.7
39+
build-depends: base >= 4.12 && < 5
40+
, bytestring ^>= 0.10
41+
, containers >= 0.5 && < 0.7
42+
, filepath ^>= 1.4
43+
, ghc ^>= 8.6.0
44+
, ghc-exactprint ^>= 0.5.8.0
45+
, hash-store ^>= 0.1.0
46+
, unordered-containers ^>= 0.2.7
4147

4248
-- Debug dependencies; in separate section to easy comment before release
4349
-- , fmt
@@ -56,11 +62,11 @@ library
5662

5763
default-language: Haskell2010
5864

59-
executable smuggler
65+
executable play-smuggler
6066
hs-source-dirs: app
6167
main-is: Main.hs
6268
ghc-options: -Wall -threaded -rtsopts -with-rtsopts=-N
63-
-fplugin=Smuggler.Plugin
69+
-- -fplugin=Smuggler.Plugin
6470
build-depends: base
6571
, smuggler
6672

0 commit comments

Comments
 (0)