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
|
||||
|
|
|
|||
1
.gitignore
vendored
1
.gitignore
vendored
|
|
@ -10,6 +10,7 @@ result-*
|
|||
.vscode/
|
||||
.idea
|
||||
tags
|
||||
TAGS
|
||||
.nvimrc
|
||||
|
||||
*.tix
|
||||
|
|
|
|||
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue