2016-12-23 16:49:34 -08:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
|
|
case $OSTYPE in
|
|
|
|
darwin*)
|
2017-05-25 02:44:47 -07:00
|
|
|
brew install cabal-install ghc
|
2016-12-23 16:49:34 -08:00
|
|
|
;;
|
|
|
|
linux*)
|
|
|
|
if [[ -f /etc/arch-release ]]; then
|
2017-05-25 02:44:47 -07:00
|
|
|
sudo pacman --needed --noconfirm -S cabal-install ghc
|
2016-12-23 16:49:34 -08:00
|
|
|
fi
|
|
|
|
;;
|
|
|
|
esac
|
2017-05-25 02:44:47 -07:00
|
|
|
|
|
|
|
cabal update
|
|
|
|
cabal install happy haskell-src-exts
|