Skip to content

Instantly share code, notes, and snippets.

@kkazuo
Created June 25, 2015 10:54
Show Gist options
  • Save kkazuo/b8369c8f0ff6fac39d88 to your computer and use it in GitHub Desktop.
Save kkazuo/b8369c8f0ff6fac39d88 to your computer and use it in GitHub Desktop.
Macにgcc-modをインストールするwith stack
#!/bin/sh -e
mkdir -p ~/.local/bin
cd ~/.local/bin
curl -LO https://github.com/commercialhaskell/stack/releases/download/v0.1.0.0/stack-0.1.0.0-x86_64-osx.gz
gunzip stack-0.1.0.0-x86_64-osx.gz
mv stack-0.1.0.0-x86_64-osx stack
chmod +x stack
mkdir /tmp/ghcmod
cd /tmp/ghcmod
~/.local/bin/stack new
~/.local/bin/stack setup
~/.local/bin/stack install ghc-mod
cd
rm -rf /tmp/ghcmod
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment