Updated fourmolu script
This commit is contained in:
parent
0750a9ba08
commit
57ef1faa63
3 changed files with 6 additions and 4 deletions
7
.github/format.sh
vendored
7
.github/format.sh
vendored
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue