14
votes

I installed Haskell on MAC OSX according to the instructions on this page.

Version 7.6.1 http://www.haskell.org/ghc/download_ghc_7_6_1

However, it does not install the cabal tool which I need for installing packages.

How can I install cabal?

2

2 Answers

41
votes

From the top of that page:

Stop!

For most users, we recommend installing the Haskell Platform instead of GHC. The current Haskell Platform release includes a recent GHC release as well as some other tools (such as cabal), and a larger set of libraries that are known to work together.

So following that link will get you what you want: the Haskell Platform is GHC plus the packages and tools you want, including Cabal (the library) and cabal-install (the command-line tool). Since you're on OS X, you can also use Homebrew to get the GHC and Cabal if you want: brew install ghc cabal-install.

1
votes

Now, we can install it from this download haskell and do not need homebrew. Both are easy ways.