[Haskell-beginners] Struggling with Haskell updates on Macintosh

Daniel Fischer daniel.is.fischer at googlemail.com
Sat Dec 18 18:48:52 CET 2010


On Saturday 18 December 2010 15:43:34, David Jameson wrote:
> Hi, I'm trying to teach myself Haskell and have installed the platform
> on my Mac along with Leksah.
>
> I'm trying to use cabal to get some updates (in particular mtl so that I
> can get the gtk library working) and cabal wants to update itself.
>
> However, when I try to do this, I'm running into various issues
>
> 1) I get a lot of warnings about the Module Prelude being deprecated 
> (possibly due to some legacy haskell installs?)

It's due to the new base version, but a lot of code still implicitly 
imports Prelude, you can safely ignore it for now.

>
> 2) The update is being installed into a different location ~/.cabal
> rather than to /usr/local/bin/cabal (which itself is an alias to
> /Library/Frameworks/HaskellPlatform.framework/bin/cabal) so no matter
> how many times I try to update, I keep getting told there's a new
> version. So how can I make the update go into the correct location?

Try
$ cabal install --global cabal-install

>
> Many thanks,
>
> David Jameson



More information about the Beginners mailing list