Skip to content

Commit

Permalink
sort out fourmolu
Browse files Browse the repository at this point in the history
  • Loading branch information
AshleyYakeley committed Feb 29, 2024
1 parent 17e47d3 commit 13eaa02
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 3 deletions.
5 changes: 3 additions & 2 deletions format-all
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
#!/bin/bash -e
if [ "$1" == "-b" ]
then stack build --no-test --no-bench --no-haddock fourmolu
then stack --stack-yaml stack.tools.yaml install --no-test --no-bench --no-haddock fourmolu
fi

INSTALL=`stack --stack-yaml stack.tools.yaml path --local-bin`
for f in `find -name '*.hs' -not -path '*.stack-work/*' -not -path '*/dist/*' | grep -xvf .format.ignore`
do `stack path --local-install-root`/bin/fourmolu -i -o -XPatternSynonyms $f || exit
do $INSTALL/fourmolu -i -o -XPatternSynonyms $f || exit
done
5 changes: 4 additions & 1 deletion fourmolu.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
respectful: false
haddock-style: single-line
consistent-let: true
let-style: newline
in-style: no-space
single-constraint-parens: never
single-deriving-parens: never
2 changes: 2 additions & 0 deletions stack.tools.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
resolver: lts-22.12
packages: []
12 changes: 12 additions & 0 deletions stack.tools.yaml.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# This file was autogenerated by Stack.
# You should not edit this file by hand.
# For more information, please see the documentation at:
# https://docs.haskellstack.org/en/stable/lock_files

packages: []
snapshots:
- completed:
sha256: e2c529ccfb21501f98f639e056cbde50470b86256d9849d7a82d414ca23e4276
size: 712898
url: https://raw.githubusercontent.com/commercialhaskell/stackage-snapshots/master/lts/22/12.yaml
original: lts-22.12

0 comments on commit 13eaa02

Please sign in to comment.