macoshaskellinstallation

How to install Haskell on Mac OS


I am trying to install Haskell on my Macbook two days and can not get the success.

What I have done:

$ brew install ghc

Fine. Now I am trying to install

$ cabal install text

and get next error messages:

Data/Text.hs:1074:4:
     error: invalid preprocessing directive
      #-}
       ^

I have googled and found this.

So:

And I get the same messages.

How can I fix them ?


Solution

  • Try using the Mac version of the Haskell Platform, I don't have a Mac to try it out but my hope is that cabal will work out-of-the-box in the Haskell Platform.