Last active
July 29, 2018 01:48
-
-
Save vmchale/dd792d3fcbfd1f19b2fbfce975fdf000 to your computer and use it in GitHub Desktop.
Bash script to install GHCJS
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
set -ex pipefile | |
cd "$HOME" || exit | |
cabal new-update | |
cabal new-install hscolour | |
rm -f "$HOME/.local/bin/cabal" "$HOME/.cabal/bin/cabal" | |
rm -rf "$HOME/.ghcjs" | |
cabal new-install cabal-install --constraint='cabal-install == 1.24.0.2' -w ghc-8.0.2 | |
export PATH="$HOME/.cabal/bin:$PATH" | |
cabal update | |
cabal install https://github.com/matchwood/ghcjs-stack-dist/raw/master/ghcjs-0.2.1.9008011.tar.gz -w ghc-8.0.2 --force-reinstalls | |
ghcjs-boot --with-ghc=ghc-8.0.2 --with-ghc-pkg=ghc-pkg-8.0.2 | |
rm "$HOME/.cabal/bin/cabal" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment