Skip to content

Commit

Permalink
Add weeder
Browse files Browse the repository at this point in the history
  • Loading branch information
phadej committed May 11, 2020
1 parent e56f0aa commit 7707095
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,11 @@ validate-via-docker-8.10.1:
validate-via-docker-old:
docker build -t cabal-validate -f .docker/validate-old.dockerfile .

# Weeder
weeder :
cabal build all --project-file=cabal.project.weeder
weeder | less

# tags
.PHONY : tags
tags :
Expand Down
14 changes: 14 additions & 0 deletions cabal.project.weeder
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
-- project file for weeder. Only Cabal and cabal install
-- install weeder with
--
-- cabal install -w ghc-8.8.3 weeder
--

packages: Cabal/
packages: cabal-install/
tests: False

with-compiler: ghc-8.8.3

package *
ghc-options: -fwrite-ide-info
1 change: 1 addition & 0 deletions weeder.dhall
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{ roots = [ "^Main.main$" ], type-class-roots = True }

0 comments on commit 7707095

Please sign in to comment.