Skip to content

Instantly share code, notes, and snippets.

@gianlucacandiotti
Created November 10, 2016 14:50
Show Gist options
  • Save gianlucacandiotti/d68cb63382074c68a7c7c1c458f243e1 to your computer and use it in GitHub Desktop.
Save gianlucacandiotti/d68cb63382074c68a7c7c1c458f243e1 to your computer and use it in GitHub Desktop.
Vagrant shell provisioning - Haskell Minimal Installers
#!/bin/bash
sudo apt-get install -y software-properties-common
sudo add-apt-repository -y ppa:hvr/ghc
sudo apt-get update
sudo apt-get install -y cabal-install-1.22 ghc-7.10.3
cat >> ~/.bashrc <<EOF
export PATH="\$HOME/.cabal/bin:/opt/cabal/1.22/bin:/opt/ghc/7.10.3/bin:\$PATH"
EOF
export PATH=~/.cabal/bin:/opt/cabal/1.22/bin:/opt/ghc/7.10.3/bin:$PATH
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment