Finally, I've done it this way:
- uninstalled entire platform with
sudo /Library/Haskell/bin/uninstall-hs
(https://stackoverflow.com/a/6996284/1749901) - then following this tutorial first installed apple-gcc42 via
brew install apple-gcc42
- then linked it
brew link apple-gcc42
- installed platform via
brew install haskell-platform
cabal update
cabal install cabal-install
- added to PATH
$HOME/.cabal/bin
(instead of$HOME/Library/Haskell/bin
in case of when platform installed via PKG installer from here, obviously becausebrew
makes a little bit different configurations). source ~/.bash_profile
, then relaunch terminal, sowhich cabal
points to<HOME>/.cabal/bin/cabal
, andcabal --version
shows 1.18 (not 1.16).cabal install happy
. At this point I've relaunched terminal one more time, becausewhich happy
pointed to local updated (1.19.2) version, buthappy --version
showed 1.16.x.cabal install type-eq
-- SUCCEEDED first time!finally,
cabal install fay fay-base
-- SUCCEEDED!Installed fay-0.18.1.3 Installed fay-base-0.18.0.0
Phew! Thank you all!