Implement nix run

This commit is contained in:
Jack Hodgkinson 2022-02-14 14:18:49 +00:00
parent 2e895f4490
commit 144bc963c3
2 changed files with 13 additions and 43 deletions

2
.github/format.sh vendored
View file

@ -3,4 +3,4 @@
# Extensions necessary to tell fourmolu about
EXTENSIONS="-o -XTypeApplications -o -XTemplateHaskell -o -XImportQualifiedPost -o -XPatternSynonyms -o -fplugin=RecordDotPreprocessor"
SOURCES=$(git ls-tree -r HEAD --full-tree --name-only | grep -E '.*\.hs')
~/.local/bin/fourmolu --mode check --check-idempotence $EXTENSIONS $SOURCES
nix run nixpkgs#haskellPackages.fourmolu -- --mode check --check-idempotence $EXTENSIONS $SOURCES