Created
June 25, 2015 10:54
-
-
Save kkazuo/b8369c8f0ff6fac39d88 to your computer and use it in GitHub Desktop.
Macにgcc-modをインストールするwith stack
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
#!/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