Home

Awesome

Weeder Nix

Produce a weeder check for a list of Haskell Packages from Nix

Quick Start

Add this repository as a flake:

{
  inputs = {
    weeder-nix.url = "github:NorfairKing/weeder-nix";
  };
}

Make a weeder check

{
  outputs = { self, weeder-nix }: {
    checks.x86-64_linux.dependency-graph = weeder-nix.lib.x86_64-linux.makeWeederCheck {
      haskellPackages = pkgs.haskellPackages;
      packages = [
        "foobar"
        "foobar-gen"
      ];
    };
  };
}

API Reference

makeWeederCheck

Make a weeder check for given Haskell Packages. (This does the addHieOutput handling for you.)

Arguments:

See ./nix/weederCheckFor.nix for the available arguments.

weederCheckScriptFor

Make a weeder check based on raw packages. This assumes you've used something like addHieOutput. You probably don't need to use this.

See ./nix/weederCheckFor.nix.

addHieOutput

Add a .hie output to a Haskell package. You probably don't need to use this.

See ./nix/addHieOutput.nix.