From e554ab6f5c5cce3a1d04f9b37e51fc76e071168e Mon Sep 17 00:00:00 2001 From: Karl Ostmo Date: Sun, 14 Jul 2024 23:08:07 -0700 Subject: [PATCH] use weeder --- scripts/validate/weeder.sh | 10 ++++++++++ weeder.toml | 10 ++++++++++ 2 files changed, 20 insertions(+) create mode 100755 scripts/validate/weeder.sh create mode 100644 weeder.toml diff --git a/scripts/validate/weeder.sh b/scripts/validate/weeder.sh new file mode 100755 index 000000000..ed811b6e5 --- /dev/null +++ b/scripts/validate/weeder.sh @@ -0,0 +1,10 @@ + + +# First, install Weeder: +# cabal install weeder + +cabal clean +cabal build -O0 -j all + +weeder -N + diff --git a/weeder.toml b/weeder.toml new file mode 100644 index 000000000..3c2ca577c --- /dev/null +++ b/weeder.toml @@ -0,0 +1,10 @@ +roots = [ + "^Main.main$", + "^Paths_.*", + "^Swarm.App.demoWeb$", + "^Swarm.Doc.Gen.generateDocs$", + "^Swarm.Web.Tournament.webMain$", + ] + +type-class-roots = true +