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

1
.gitignore vendored
View file

@ -10,6 +10,7 @@ result-*
.vscode/
.idea
tags
TAGS
.nvimrc
*.tix

View file

@ -24,7 +24,7 @@ import Plutarch.Prelude
said transaction. Said validator should be made aware of
_this_ token's existence in order to prevent incorrect minting.
-}
data AuthorityToken = AuthorityToken
newtype AuthorityToken = AuthorityToken
{ -- | Token that must move in order for minting this to be valid.
authority :: AssetClass
}