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
|
#!/bin/bash
|
||||||
|
|
||||||
nix-shell -I nixpkgs=https://github.com/NixOS/nixpkgs/archive/refs/tags/21.05.tar.gz \
|
# Extensions necessary to tell fourmolu about
|
||||||
-p haskellPackages.fourmolu \
|
EXTENSIONS="-o -XTypeApplications -o -XTemplateHaskell -o -XImportQualifiedPost -o -XPatternSynonyms -o -fplugin=RecordDotPreprocessor"
|
||||||
--run 'make format_check'
|
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
1
.gitignore
vendored
|
|
@ -10,6 +10,7 @@ result-*
|
||||||
.vscode/
|
.vscode/
|
||||||
.idea
|
.idea
|
||||||
tags
|
tags
|
||||||
|
TAGS
|
||||||
.nvimrc
|
.nvimrc
|
||||||
|
|
||||||
*.tix
|
*.tix
|
||||||
|
|
|
||||||
|
|
@ -24,7 +24,7 @@ import Plutarch.Prelude
|
||||||
said transaction. Said validator should be made aware of
|
said transaction. Said validator should be made aware of
|
||||||
_this_ token's existence in order to prevent incorrect minting.
|
_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.
|
{ -- | Token that must move in order for minting this to be valid.
|
||||||
authority :: AssetClass
|
authority :: AssetClass
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue