diff --git a/modules/hooks.nix b/modules/hooks.nix index 37926c4e..c8b027e7 100644 --- a/modules/hooks.nix +++ b/modules/hooks.nix @@ -464,6 +464,13 @@ in entry = "${tools.purty}/bin/purty"; files = "\\.purs$"; }; + purs-tidy = + { + name = "purs-tidy"; + description = "Format purescript files"; + entry = "${tools.purs-tidy}/bin/purs-tidy format-in-place"; + files = "\\.purs$"; + }; prettier = { name = "prettier"; diff --git a/nix/tools.nix b/nix/tools.nix index 6f2d938c..9069ac51 100644 --- a/nix/tools.nix +++ b/nix/tools.nix @@ -48,7 +48,7 @@ # TODO: these two should be statically compiled inherit (haskellPackages) brittany fourmolu; inherit (luaPackages) luacheck; - inherit (nodePackages) eslint markdownlint-cli prettier; + inherit (nodePackages) eslint markdownlint-cli prettier purs-tidy; inherit (python39Packages) ansible-lint yamllint; cabal2nix-dir = callPackage ./cabal2nix-dir { }; hpack-dir = callPackage ./hpack-dir { };