2017-12-05 22:39:10 -08:00
|
|
|
#!/usr/bin/env zsh
|
|
|
|
source ${0:A:h}/../../deploy
|
|
|
|
source env.zsh
|
|
|
|
|
|
|
|
install() {
|
|
|
|
case $(_os) in
|
|
|
|
macos) brew install stack ghc ;;
|
2018-02-28 21:15:42 -08:00
|
|
|
# The arch linux + haskell situation is a mess. To ensure haskell packages
|
|
|
|
# installed via pacman and ones installed via stack/cabal leave each other
|
|
|
|
# alone, we need ghc-static + stack-bin.
|
2018-05-24 12:35:12 -07:00
|
|
|
arch) yay --needed --noconfirm -S ghc-static stack-bin ;;
|
2017-12-05 22:39:10 -08:00
|
|
|
esac
|
|
|
|
stack config set system-ghc --global true
|
2018-02-28 21:15:42 -08:00
|
|
|
stack setup && stack install ShellCheck
|
2017-12-05 22:39:10 -08:00
|
|
|
}
|
|
|
|
|
|
|
|
update() {
|
|
|
|
stack update
|
|
|
|
}
|
|
|
|
|
|
|
|
# link() {}
|
|
|
|
|
|
|
|
# clean() {}
|
|
|
|
|
|
|
|
init "$@"
|