dev/haskell: remove cabal/bin from PATH; update installer
This commit is contained in:
parent
c41f98c5c5
commit
c2b1624cb9
|
@ -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() {
|
||||||
|
|
|
@ -1,2 +1 @@
|
||||||
export STACK_ROOT=$XDG_DATA_HOME/stack
|
export STACK_ROOT=$XDG_DATA_HOME/stack
|
||||||
path=( ~/.cabal/bin $path )
|
|
||||||
|
|
Loading…
Reference in a new issue