dev/haskell: remove cabal/bin from PATH; update installer

This commit is contained in:
Henrik Lissner 2018-03-01 00:15:42 -05:00
parent c41f98c5c5
commit c2b1624cb9
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395
2 changed files with 5 additions and 3 deletions

View file

@ -5,10 +5,13 @@ source env.zsh
install() { install() {
case $(_os) in case $(_os) in
macos) brew install stack ghc ;; macos) brew install stack ghc ;;
arch) pacaur --needed --noedit --noconfirm -S ghc stack-static ;; # 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.
arch) pacaur --needed --noedit --noconfirm -S ghc-static stack-bin ;;
esac esac
stack config set system-ghc --global true stack config set system-ghc --global true
stack setup && stack install ShellCheck ghc-mod stack setup && stack install ShellCheck
} }
update() { update() {

View file

@ -1,2 +1 @@
export STACK_ROOT=$XDG_DATA_HOME/stack export STACK_ROOT=$XDG_DATA_HOME/stack
path=( ~/.cabal/bin $path )