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?
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?
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
.
Now, we can install it from this download haskell and do not need homebrew. Both are easy ways.
As the Haskell Platform is deprecated since 2022, Haskell on Mac can be installed using Homebrew.
The Glasgow Haskell Compiler (GHC) and The Cabal Library can be installed using:
brew install ghc cabal-install
To install the The Haskell Tool Stack use:
brew install stack --cask