8 export PATH=$HOME/.local/bin:/opt/ghc/$GHCVER/bin:$PATH
9 curl --retry 3 -L https://www.stackage.org/stack/linux-x86_64 | tar xz --wildcards --strip-components=1 -C ~/.local/bin '*/stack'
10 stack config set system-ghc --global true
11 stack install --resolver "lts-$STACKVER" stylish-haskell --no-terminal
14command -v stylish-haskell >/dev/null 2>&1 || { echo "Could not find stylish-haskell. Aborting." >&2; exit 1; }
16find . -name \*.hs -and \( -not \( -name Setup.hs -or -path ./.cabal-sandbox/\* -or -path ./dist/\* \) \) | xargs stylish-haskell -i > stylish-out 2>&1
18# It doesn't do exit codes properly, so we just check if it outputted anything.
21 echo "Stylish-haskell reported an error :("
28if git status --porcelain|grep .; # true if there was any output
30 echo "Git tree is dirty after stylizing.";
33 echo "Since we're on Travis, this is a build failure."
34 echo "Run ./stylize.sh to stylize your tree and push the changes."
38 echo "Stylish didn't change anything :)"
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list