Skip to content

Commit

Permalink
Add weeder (#1663)
Browse files Browse the repository at this point in the history
This can be run with

```
nix develop
weeder
```
  • Loading branch information
locallycompact authored Sep 30, 2024
2 parents c93142f + aaf7596 commit c8d9173
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cabal.project
Original file line number Diff line number Diff line change
Expand Up @@ -41,3 +41,6 @@ benchmarks: True

-- Always show detailed output for tests
test-show-details: direct

program-options
ghc-options: -fwrite-ide-info
1 change: 1 addition & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@
cabalProject = builtins.readFile (src + "/cabal.project");
};
hlint = pkgs.haskell-nix.tool compiler "hlint" "3.8";
weeder = pkgs.haskell-nix.tool compiler "weeder" "2.9.0";
cardano-cli = inputs.cardano-node.packages.${system}.cardano-cli;
cardano-node = inputs.cardano-node.packages.${system}.cardano-node;
mithril-client-cli = inputs.mithril.packages.${system}.mithril-client-cli;
Expand Down
1 change: 1 addition & 0 deletions nix/hydra/shell.nix
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ let
pkgs.treefmt
# Handy to interact with the hydra-node via websockets
pkgs.websocat
pkgs.weeder
pkgs.yarn
pkgs.yq
# Use latest jq in all shells, to avoid 1.6 bug with large integers.
Expand Down
2 changes: 2 additions & 0 deletions weeder.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
roots = [ "^Main.main$" ]
type-class-roots = true

0 comments on commit c8d9173

Please sign in to comment.