on master help sign in
Abort if stylish-haskell is missing.
commit05ccaf35f7ce91e0c1f0950ba18425b4b65dca19 authorChris Ford <christophertford@gmail.com> dateTue 4 Apr 2017, 09:40 (10 years ago) parente019840
1 file changed+1
stylize.sh+1
stylize.sh+1
@@ -11,6 +11,7 @@ then
1111 stack install --resolver "lts-$STACKVER" stylish-haskell --no-terminal
1212fi
1313
14+command -v stylish-haskell >/dev/null 2>&1 || { echo "Could not find stylish-haskell. Aborting." >&2; exit 1; }
1415
1516find . -name \*.hs -and \( -not \( -name Setup.hs -or -path ./.cabal-sandbox/\* -or -path ./dist/\* \) \) | xargs stylish-haskell -i > stylish-out 2>&1
1617