Skip to content

Commit 05ccaf3

Browse files
committed
Abort if stylish-haskell is missing.
1 parent e019840 commit 05ccaf3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

stylize.sh

+1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ then
1111
stack install --resolver "lts-$STACKVER" stylish-haskell --no-terminal
1212
fi
1313

14+
command -v stylish-haskell >/dev/null 2>&1 || { echo "Could not find stylish-haskell. Aborting." >&2; exit 1; }
1415

1516
find . -name \*.hs -and \( -not \( -name Setup.hs -or -path ./.cabal-sandbox/\* -or -path ./dist/\* \) \) | xargs stylish-haskell -i > stylish-out 2>&1
1617

0 commit comments

Comments
 (0)