Commit Graph

131 Commits

Author SHA1 Message Date
Ollie Charles
5e4a9f5788
Release 2.3.0 (#88) 2021-10-11 19:04:40 +01:00
Ollie Charles
d0c69bbee2
Upgrade to GHC 9 (#68)
Unfortunately I don't have the resources to support earlier versions of GHC, so this is a strict upgrade.

Fixes #65.
2021-10-11 17:53:32 +00:00
Tristan de Cacqueray
67491166a6
Update documentation for the new one-weed-per-line output (#87) 2021-10-11 10:12:18 +01:00
Ollie Charles
b810f19922
Release 2.2.0 (#83)
This will likely be the last release before we switch to GHC 9.
2021-08-29 09:40:36 +00:00
Ollie Charles
c724f1908c
Bump upper bounds (#84) 2021-08-29 10:36:08 +01:00
Ollie Charles
476bf82f6a
Correct CHANGELOG links 2021-08-28 15:44:25 +01:00
Ollie Charles
e16cb5850c
Don't analyze HIE files when hs file doesn't exist (#82)
There doesn't seem to be anything that cleans up corresponding .hie
files when hs files are removed. When weeder analyzes them it
(correctly) discovers all code as unused. This can be particularly
troublesome on CI where build artifacts (e.g. .stack-work) are heavily
cached. Removing a file will result in a Weeder error that is
non-obvious and requires an expensive operation (busting the cache) to
correct.

Fixes #6 and #48.

The HIE files capture source file paths as relative to the compilation
root, which may be within a sub-directory in the case of a multi-package
project. There seems to be no stable way to know which sub-directory to
look in, so this approach looks into them all.

It does this by first locating all .hs files and then looking for any
element with the candidate file as a suffix. This of course suffers from
false positives, but is hopefully acceptable. Projects which use package
names in their module namespaces should be fine, but some notable cases
of false-positive would be test/Spec.hs or executables/Main.hs.

Co-authored-by: patrick brisbin <pbrisbin@gmail.com>
2021-08-27 12:17:40 +01:00
amesgen
6a68409bad
Pattern synonyms can use other bindings (#79) 2021-08-02 08:40:47 +00:00
Ollie Charles
ce57e802e8
Update dependencies (#77) 2021-07-15 17:58:33 +00:00
tomjaguarpaw
e071eaa1ef
Fix typo (#73) 2021-05-17 09:12:21 +01:00
Ollie Charles
97c885dc19
Remove moduleSource (#72)
Since #62, we no longer need to store source code during analysis.
2021-04-30 09:01:10 +00:00
Evan Laforge
7ee5fe980f
Change to a one-weed-per-line output format (#62) 2021-04-30 08:47:09 +00:00
Ollie Charles
b404dd9f7d
Update weeder.dhall (#71) 2021-04-30 08:44:38 +00:00
Ollie Charles
86d9f57c27
Apply HLint suggestions (#70) 2021-04-30 08:36:06 +00:00
Ollie Charles
0e3ff56827
Fix nix-shell (#69)
Corrects nix-shell itself, and changes the .envrc file to just call `use nix`.
2021-04-29 20:26:35 +00:00
Ole Krüger
d350dc3133
Allow customization of HIE file extension (#64) 2021-04-12 08:00:51 +00:00
Ollie Charles
b807efa5f5
Upgrade haskell.nix (#67)
This should have support for GHC 9.
2021-04-10 14:15:51 +00:00
tomjaguarpaw
a31834c150
Show hieVersion in --version and clarify an error message (#60) 2021-02-14 11:27:05 +00:00
Ollie Charles
b490295a50
Switch to Haskell.nix and fix CI (#61) 2021-02-14 11:20:50 +00:00
Ollie Charles
f31432b2ad
Release 2.1.3 (#57) 2020-12-11 10:05:45 +00:00
Ollie Charles
e343929cdb
Bump dhall and bytestring dependency bounds (#54) 2020-12-11 09:24:04 +00:00
Ollie Charles
0ce2f1a2bc
Fix CI (#55)
This commit bumps the cachix-action and nix-install-action. We now have to specify a nixpkgs channel, and choosing 19.09 has needed a few other packages to be overriden.
2020-12-11 09:10:49 +00:00
Ollie Charles
5927444f99
Release 2.1.2 (#47) 2020-09-09 16:12:27 +01:00
Ollie Charles
c2aaa9028c
Another attempt at supporting optparse-applicative-0.16 (#46) 2020-09-09 16:05:51 +01:00
Ollie Charles
e4b421efa1
Release 2.1.1 (#45) 2020-09-09 15:31:09 +01:00
Ollie Charles
fc31e50d1f
Support Dhall 1.34 and optparse-applicative 0.16.0 (#41) 2020-09-09 15:19:59 +01:00
Ollie Charles
3128c06a7e
CI tweaks (#42) 2020-08-18 14:56:49 +01:00
Ollie Charles
8ab9a32480 Release 2.1.0 2020-06-30 15:02:08 +01:00
Ollie Charles
749da64556 Support GHC 8.10
Fixes #15, fixes #33
2020-06-30 14:59:14 +01:00
Oleg Grenrus
933cd9f5fd
Make search directory configurable (#37)
This is useful when one uses e.g. `--builddir` or other
similar in spirit parameters.
2020-06-08 09:16:33 +01:00
Oleg Grenrus
df6b667d6d
Help and version (#36) 2020-05-21 21:05:04 +01:00
Oleg Grenrus
6575e02183
Add cabal.project.local to .gitignore (#34) 2020-05-21 21:03:26 +01:00
Kirill Zaborsky
4d1ae57166
Document test suite as a good root (#27)
Fixes #25
2020-04-10 13:35:17 +01:00
Joe Hermaszewski
7ed6e38174
Mention ignoring Paths_packageName in readme (#23)
Fixes #22
2020-04-02 15:26:13 +01:00
Oleg Grenrus
64fa15a491
Mention which configuration file (#18) 2020-04-01 13:41:09 +01:00
Robert
b828eceb85
Handle mismatched hie file version explicitly (fixes #8). (#16)
This is instead of letting the ghc library panic and blame GHC.
2020-03-27 17:24:07 +00:00
Ollie Charles
95c615eb42
Support regex-tdfa ^>= 1.2 (#13) 2020-03-17 12:30:04 +00:00
Ollie Charles
48a2a79d77
Add CI via Cachix & Github Actions (#12)
This has also required a few small fixes.

Fixes #11
2020-03-17 09:25:28 +00:00
Robert
2788a03a7a
Document usage with stack (#9)
* Document usage with stack

This is how I got it to work, there may well be more sensible options.

* Update README.md

Co-authored-by: Ollie Charles <ollie@ocharles.org.uk>
2020-03-16 20:58:48 +00:00
recursion-ninja
7f878a61af
Appending original changelog to the new version (#10) 2020-03-16 20:57:39 +00:00
Oliver Charles
1de90c09b7 Re-add category and maintainer 2020-03-15 18:11:18 +00:00
Oliver Charles
4f201a3e4c Missing default-language settings 2020-03-15 18:10:33 +00:00
Oliver Charles
1765981309 Release 2.0.1 2020-03-15 18:08:50 +00:00
Robert
42e9e9e686
Allow optparse-applicative 0.15.1.0 and algebraic-graphs 0.5. (#7)
This fixes GHC 8.8.3 build for me (via stackage lts-15.3 and
nightly-2020-03-14).
2020-03-15 18:07:18 +00:00
Oliver Charles
60265823c8 Release weeder 2.0.0.0! 2020-03-15 15:31:20 +00:00
Oliver Charles
2c7c18b0b0 Tidy 2020-03-15 15:31:20 +00:00
Oliver Charles
7f5a6a915a Non-zero exit and summary 2020-03-15 15:28:50 +00:00
Oliver Charles
882d56c190 Haddock 2020-03-15 15:25:24 +00:00
Oliver Charles
334b3be388 Refresh README 2020-03-15 15:25:24 +00:00
Oliver Charles
a49acaa515 Change UX to just use regular expressions 2020-03-15 14:52:41 +00:00