I am totally noob in Haskell, I am trying to follow a tutorial on how use it for the web.
I am using Mac OSX so I downloaded the haskell platform for OSX from http://www.haskell.org/platform/mac.html
Then I did
cabal update
It told me that a new version of cabal install was available, so why not cabal install cabal-install
It compiled version Cabal-1.16.0.3 and installed it in my $HOME/Library/Haskell. I prepend $HOME/Library/Haskell/bin to my $PATH and open a new terminal.
Then I do cabal --version
But version is 1.14 I do $HOME/Library/Haskell/bin/cabal --version And I get that the binary is using library version 1.14 How can I get it to use the newly installed version instead of the one of the platform?
Then I do cabal install cabal-dev
And get a message of the new packages to compile but this message also includescabal:
The following packages are likely to be broken by the reinstalls:
network-2.3.1.0
haskell-platform-2012.4.0.0
cgi-3001.1.7.4
HTTP-4000.2.5
I do not like how this sounds.
I prevously tried to install yesod on a different computer and I remember having the same kind of issues and ultimately yesod was not installing, I do not want to do anything that will break anything this time.
What is the correct way to get Yesod or any haskell package to work on mac osx?
cabal-dev
version from github should compile fine. Clone the repo, cd into it, andcabal install
. – Daniel Fischer