Merge pull request #3738 from ctford/warn-on-missing-stylish-haskell
Abort if stylish-haskell is missing.
commit05893db5f9452878458a7d729a275f077bc0f553
authorNiklas Larsson <metaniklas@gmail.com>
dateTue 4 Apr 2017, 22:20 (10 years ago)
parente01984005ccaf3
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