Skip to content

Commit 117579f

Browse files
authored
Merge pull request #80 from gilligan/add-purty
Add purty(purescript) support
2 parents efdbd6d + 3ec3322 commit 117579f

File tree

3 files changed

+13
-0
lines changed

3 files changed

+13
-0
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,10 @@ eval "$shellHook"
9898

9999
- [elm-format](https://github.com/avh4/elm-format)
100100

101+
## Purescript
102+
103+
- [purty](https://gitlab.com/joneshf/purty)
104+
101105
## Python
102106

103107
- [black](https://github.com/psf/black)

modules/hooks.nix

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,5 +184,12 @@ in
184184
files = "\\.rs$";
185185
pass_filenames = false;
186186
};
187+
purty =
188+
{
189+
name = "purty";
190+
description = "Format purescript files";
191+
entry = "${tools.purty}/bin/purty --write";
192+
files = "\\.purs$";
193+
};
187194
};
188195
}

nix/tools.nix

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,14 @@
2020
, rustfmt
2121
, clippy
2222
, cargo
23+
, nodePackages
2324
}:
2425

2526
{
2627
inherit ansible-lint hlint shellcheck ormolu hindent cabal-fmt nixpkgs-fmt nixfmt nix-linter rustfmt clippy cargo;
2728
inherit (elmPackages) elm-format;
2829
inherit (haskellPackages) stylish-haskell brittany hpack;
2930
inherit (pythonPackages) yamllint;
31+
inherit (nodePackages) purty;
3032
terraform-fmt = callPackage ./terraform-fmt { };
3133
}

0 commit comments

Comments
 (0)