https://www.haskell.org/ghc/download_ghc_7_8_3#macosx_x86_64
Download ghc-7.8.3-x86_64-apple-darwin.tar.xz
Unarchive
./configure
make install
cabal install cabal-install
.zshrc
or .bashrc
PATH=$HOME/Library/Haskell/bin:$PATH
ghcjs
git clone https://github.com/ghcjs/ghcjs-prim.git
git clone https://github.com/ghcjs/ghcjs.git
cabal install ./ghcjs ./ghcjs-prim
ghcjs-boot --dev