Last active
August 29, 2015 13:56
-
-
Save dysinger/8886785 to your computer and use it in GitHub Desktop.
HELP I'M NEW TO HASKELL AND CABAL IS KILLING ME!!!
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
# REMOVE ANYTHING CABAL HAS EVER DROPPED ONTO YOUR SYSTEM | |
rm -rf ~/.{ghc,cabal} | |
# UPDATE CABAL | |
cabal update | |
# UPGRADE CABAL TO 1.18 (BECAUSE THEY ADDED SANDBOXES) | |
cabal install cabal-install | |
export PATH=~/.cabal/bin:$PATH ;# PUT THIS IN YOUR PROFILE | |
# CREATE A SANDBOX (THINK VIRTUALENV) | |
cd /tmp/ | |
mkdir idris-install | |
cd idris-install | |
cabal sandbox init | |
# INSTALL IDRIS | |
cabal install idris | |
sudo cp ./.cabal-sandbox/bin/* /usr/local/bin/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Cabal also has a
--destdir
option (thinkmake install
) - maybe that'd work instead ofcp
?https://gist.github.com/LeifW/7125693#file-gistfile1-txt-L3
Idris only has a single executable,
idris
, in /bin, anyways.