Skip to content

Instantly share code, notes, and snippets.

@snoyberg
Created September 15, 2016 11:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save snoyberg/959a2ade4287de6129910eeabec1d9d2 to your computer and use it in GitHub Desktop.
Save snoyberg/959a2ade4287de6129910eeabec1d9d2 to your computer and use it in GitHub Desktop.
Haskception
#!/usr/bin/env bash
set -eux
# Useful for using a base Docker image without wget
# apt-get update
# apt-get install wget -y
wget -qO- https://get.haskellstack.org/ | sh
stack setup
echo 'export PATH=$HOME/.local/bin:`stack path --bin-path`' >> ~/.bashrc
stack build alex happy cabal-install
# Now let's get crazy :)
export PATH=$HOME/.local/bin:`stack path --bin-path`
cabal install stack
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment