Updated fourmolu script

This commit is contained in:
Jack Hodgkinson 2022-02-14 11:06:42 +00:00
parent 0750a9ba08
commit 57ef1faa63
3 changed files with 6 additions and 4 deletions

7
.github/format.sh vendored
View file

@ -1,5 +1,6 @@
#!/bin/bash
nix-shell -I nixpkgs=https://github.com/NixOS/nixpkgs/archive/refs/tags/21.05.tar.gz \
-p haskellPackages.fourmolu \
--run 'make format_check'
# 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