Add some haskell-related scripts

6cbf036e09c808573e68f5e523ce2d9f18cda42d
Alexis Sellier committed ago 1 parent 833d3ba1
bin/watch-haskell-build added +4 -0
1 +
#!/bin/sh
2 +
3 +
ag --haskell -g "" | entr -c -- sh -c \
4 +
  'stack build "$@" --fast 2>/dev/null && echo -n "\033[1;32mOK.\033[0m"'
bin/watch-haskell-lint added +9 -0
1 +
#!/bin/sh
2 +
3 +
if [ -f "$1" ]; then
4 +
  ag --haskell -g "" | entr -c -p hlint -h=$1 -h=HLint /_
5 +
else
6 +
  ag --haskell -g "" | entr -c -p hlint /_
7 +
fi
8 +
9 +