Commit Graph

105 Commits

Author SHA1 Message Date
Ollie Charles
ffa91d2484
Release 2.6.0 (#127) 2023-07-07 12:47:16 +01:00
ryndubei
12b018e405
Remove double addition of declarations (#114) 2023-06-25 18:04:55 +01:00
ryndubei
e39cd7d986
Implement test suite (#116)
* Implement test suite

* Add mainWithConfig'

* Export dotfiles of dependency graphs

* Draw dotfiles to PNG via graphviz

* Flag for drawing graph PNGs

* Remove failing tests for now

* Combine mainWithConfig and mainWithConfig'
2023-06-23 20:54:10 +00:00
ryndubei
d8df2df683
Sort weeds by line number (#122) 2023-06-23 18:44:49 +00:00
Tristan de Cacqueray
9732ba1e28
Support GHC 9.6 (#115)
Co-authored-by: Ollie Charles <ollie@ocharles.org.uk>
2023-06-23 12:12:16 +01:00
Taylor Fausak
11ab798d46
Replace Dhall with TOML using toml-reader (#120)
Co-authored-by: Ollie Charles <ollie@ocharles.org.uk>
2023-06-22 14:28:09 +01:00
Ollie Charles
e0ed4661b4
Update CI (#121) 2023-06-22 13:56:43 +01:00
Ollie Charles
01c900f742
Release 2.5.0 (#111) 2023-01-20 13:08:49 +00:00
Taylor Fausak
59c83d8dc8
Support GHC 9.4 (#110)
Fixes #109.

Co-authored-by: Ollie Charles <ollie@ocharles.org.uk>
2023-01-20 10:56:51 +00:00
Ollie Charles
5bc013b1e3
Release 2.4.1 (#108) 2023-01-05 11:32:26 +00:00
Tristan de Cacqueray
f73a87e20e
Allow lens 5.2 (#106)
See https://hackage.haskell.org/package/lens-5.2/changelog

Co-authored-by: Ollie Charles <ollie@ocharles.org.uk>
2023-01-05 11:18:42 +00:00
Ollie Charles
de84d6dd52
Upgrade Haskell.nix and switch to GHC 9.2.5 (#107) 2023-01-05 11:13:42 +00:00
Ollie Charles
c58ed2a8c6
Release 2.4.0 (#102) 2022-05-22 12:06:46 +00:00
Ollie Charles
e50645001f
Support GHC 9.2 (#94) 2022-05-21 19:18:46 +01:00
Ollie Charles
1d7f6f0298
Release 2.3.1 (#101) 2022-05-21 14:15:28 +00:00
Ollie Charles
1228a6e969
Allow optparse-applicative-0.17 (#100) 2022-05-21 14:05:37 +00:00
Ollie Charles
c5ea13a2c0
Allow Dhall 1.41 (#99) 2022-05-21 13:57:45 +00:00
Ollie Charles
e73f4b22ed
Allow lens 5.1 2022-05-21 14:51:41 +01:00
Janus Troelsen
972f30931c
Allow algebraic-graphs 0.6 series (#95) 2022-05-21 14:48:25 +01:00
Ollie Charles
25ccdeb873
Update Haskell.nix (#98) 2022-05-21 13:41:43 +00:00
Phil de Joux
26aa6d5d7f
Shorter help for require-hs-files. (#97) 2022-04-25 15:37:42 +00:00
Phil de Joux
08ea28442d
Typo in requires. (#96) 2022-04-25 14:55:49 +00:00
amesgen
a05945bf77
Analyse top-level pattern bindings (#93)
Fixes #92.
2021-12-08 14:58:59 +00:00
Ollie Charles
c19775085d
Update CI dependencies 2021-12-08 14:57:20 +00:00
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