Stackage on OSX

Remove Haskell

Remove previous haskell. Was suggested by someone.

sudo uninstall-hs thru 8.0.2 --remove
sudo rm -R /Library/Haskell/*
sudo rm -R ~/.stack
sudo rm -R ~/.cabal

Update PATH with possible links in ~/.bash_profile

Install stack

Install stack tool.

curl -sSL https://get.haskellstack.org/ | sh
stack --version
Version 1.5.0 ...

Create a stack app

Create a new app.

stack new autoduel new-template    -- create app structure
cd autoduel
stack setup  -- download GHC
stack build
stack exec autoduel-exe

References