
Hi, I am running GHC 6.12.3 at Mac OSX and have numerous problems with 'cabal install' of different packages. For example: ~>cabal install mongoDB Resolving dependencies... Configuring mongoDB-1.1.0... Preprocessing library mongoDB-1.1.0... Building mongoDB-1.1.0... ... Control/Monad/MVar.hs:16:34: Module `Control.Exception.Control' does not export `mask' cabal: Error: some packages failed to install: mongoDB-1.1.0 failed during the building phase. The exception was: ExitFailure 1 Questions about current Haskell Platform for OSX 2011.2.0.1. : (http://hackage.haskell.org/platform/mac.html) 1) Where can I find release notes to understand what version of GHC Haskell Platform for OSX 2011.2.0.1 includes? 2) Will I be able to install mongoDB-1.1.0 on this release? 3) How to install it into a separate location so it would not ruin my current platform? Thanks! Dmitri

On Tue, Nov 8, 2011 at 6:31 PM, dokondr
Hi, I am running GHC 6.12.3 at Mac OSX and have numerous problems with 'cabal install' of different packages.
[...]
Questions about current Haskell Platform for OSX 2011.2.0.1. : (http://hackage.haskell.org/platform/mac.html)
1) Where can I find release notes to understand what version of GHC Haskell Platform for OSX 2011.2.0.1 includes?
I couldn't find a release notes document for Mac OS X but unpacking the .pkg file shows it has GHC 7.0.3.
2) Will I be able to install mongoDB-1.1.0 on this release?
Hackage shows that mongoDB-1.0.1 has been the latest package compiled with GHC 7.0. For GHC 6.x it's mongoDB-0.8.1. You might have more luck upgrading the Haskell Platform or choosing a older version of mongoDB.
3) How to install it into a separate location so it would not ruin my current platform?
You can install it under a different username. -- Giovanni

On Tue, Nov 8, 2011 at 4:30 PM, Giovanni Tirloni
3) How to install it into a separate location so it would not ruin my current platform?
You can install it under a different username.
You can also use a sandboxed build tool like cabal-dev or virthualenv -- both of which are on hackage. (While the HP provides a great way to install Haskell, and it defines a set of mature packages, it is not necessary for development -- cabal install doesn't pay any special attention to HP packages, for example.). Having the HP installed is convenient, particularly if you run ghci a lot, but all you need is ghc, cabal-install, and a connection to hackage. --Rogan

On Wed, Nov 9, 2011 at 3:48 AM, Rogan Creswick
On Tue, Nov 8, 2011 at 4:30 PM, Giovanni Tirloni
wrote: 3) How to install it into a separate location so it would not ruin my current platform?
You can install it under a different username.
Haskell Platform (HP) is installed for *all* users in one location at OSX: /Library/Frameworks/GHC.framework/Versions/ total 8 drwxrwxr-x 4 root admin 136 21 feb 2011 . drwxrwxr-x 5 root admin 170 21 feb 2011 .. drwxrwxr-x 4 root admin 136 11 jun 2010 612 lrwxr-xr-x 1 user staff 3 21 фев 2011 Current -> 612 1) How different username will help here? 2) Is there any way to see what packages HP includes without actually installing it? Some online document listing HP packages?

On Wed, Nov 9, 2011 at 8:26 AM, dokondr
On Wed, Nov 9, 2011 at 3:48 AM, Rogan Creswick
wrote: On Tue, Nov 8, 2011 at 4:30 PM, Giovanni Tirloni
wrote: 3) How to install it into a separate location so it would not ruin my current platform?
You can install it under a different username.
Haskell Platform (HP) is installed for *all* users in one location at OSX: /Library/Frameworks/GHC.framework/Versions/ total 8 drwxrwxr-x 4 root admin 136 21 feb 2011 . drwxrwxr-x 5 root admin 170 21 feb 2011 .. drwxrwxr-x 4 root admin 136 11 jun 2010 612 lrwxr-xr-x 1 user staff 3 21 фев 2011 Current -> 612
1) How different username will help here?
I meant install new packages through cabal under a different username. The cabal repo should be localized unless you specify --global Please see Rogan's suggestions.
2) Is there any way to see what packages HP includes without actually installing it? Some online document listing HP packages?
http://hackage.haskell.org/platform/contents.html http://lambda.haskell.org/hp-tmp/docs/2011.2.0.0/start.html -- Giovanni

On Wed, Nov 9, 2011 at 2:11 PM, Giovanni Tirloni
I meant install new packages through cabal under a different username. The cabal repo should be localized unless you specify --global
Please see Rogan's suggestions.
Thanks for your help! In case I upgrade to the latest Haskell Platform, what will happen to packages already installed in my ~/.cabal folder? Some of these are quite old and most probably will be incompatible with GHC 7 Does upgrade process remove old and create anew ~/.cabal folder?

On 11-11-09 06:37 AM, dokondr wrote:
In case I upgrade to the latest Haskell Platform, what will happen to packages already installed in my ~/.cabal folder? Some of these are quite old and most probably will be incompatible with GHC 7 Does upgrade process remove old and create anew ~/.cabal folder?
Every GHC version ignores libs built by other GHC versions. In short see ~/.ghc In long see my http://www.vex.net/~trebla/haskell/sicp.xhtml ~/.cabal is hardly the whole story or the major story. More people need to learn that.

On Wed, Nov 9, 2011 at 3:37 AM, dokondr
In case I upgrade to the latest Haskell Platform, what will happen to packages already installed in my ~/.cabal folder? Some of these are quite old and most probably will be incompatible with GHC 7 Does upgrade process remove old and create anew ~/.cabal folder?
The compiled packages are stored in a directory that is specific to the version of GHC that was used to build them, so you don't need to worry about that. Indeed, you can switch between GHCs (eg: by tweaking your $PATH, or using a tool like virthualenv) as much as you want and they won't interfere with most packages. (There may be issues with respect to /executables/ but that /should/ also be OK. Executables and cabal are a whole different problem, but most of the time things work out.) --Rogan
participants (4)
-
Albert Y. C. Lai
-
dokondr
-
Giovanni Tirloni
-
Rogan Creswick