From 7707095fe199b8d0c53169f873a160b1496479aa Mon Sep 17 00:00:00 2001 From: Oleg Grenrus Date: Mon, 11 May 2020 18:37:06 +0300 Subject: [PATCH] Add weeder --- Makefile | 5 +++++ cabal.project.weeder | 14 ++++++++++++++ weeder.dhall | 1 + 3 files changed, 20 insertions(+) create mode 100644 cabal.project.weeder create mode 100644 weeder.dhall diff --git a/Makefile b/Makefile index 4c2bafc336f..212a2a22725 100644 --- a/Makefile +++ b/Makefile @@ -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 : diff --git a/cabal.project.weeder b/cabal.project.weeder new file mode 100644 index 00000000000..c167fa6edfe --- /dev/null +++ b/cabal.project.weeder @@ -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 diff --git a/weeder.dhall b/weeder.dhall new file mode 100644 index 00000000000..0e873ea4cb5 --- /dev/null +++ b/weeder.dhall @@ -0,0 +1 @@ +{ roots = [ "^Main.main$" ], type-class-roots = True }