@@ -12,19 +12,14 @@ function fail_maybe_explain {
1212
1313if [ -n "$TRAVIS" ];
1414then
15− # It takes a while to compile, let's not tax Travis' infrastructure for no
16− # reason. We can't cache it via cabsnap because that's based on the install-
17− # plan for Idris, which of course doesn't have stylish-haskell as a
18− # dependency.
19− STYLISH_EXE=$(mktemp)
20− wget -O $STYLISH_EXE "https://s3-us-west-2.amazonaws.com/idris-travis-binaries/stylish-haskell"
21− chmod +x $STYLISH_EXE
22−else
23− STYLISH_EXE=stylish-haskell
15+ mkdir -p ~/.local/bin
16+ export PATH=$HOME/.local/bin:/opt/ghc/8.0.1/bin:$PATH
17+ curl --retry 3 -L https://www.stackage.org/stack/linux-x86_64 | tar xz --wildcards --strip-components=1 -C ~/.local/bin '*/stack'
18+ stack install --resolver lts-7.2 stylish-haskell --no-terminal
2419fi
2520
2621
27−find . -name \*.hs -and \( -not -name Setup.hs \) | xargs $STYLISH_EXE -i > stylish-out 2>&1
22+find . -name \*.hs -and \( -not -name Setup.hs \) | xargs stylish-haskell -i > stylish-out 2>&1
2823
2924# It doesn't do exit codes properly, so we just check if it outputted anything.
3025if [ -s stylish-out ];