Problem installing wxHaskell on Haskell Platform on OSX.

Hi: I have just installed the Haskell Platform 2009.2.0.2 on Mac OSX 10.6.2. When I try to install wx I get the following error which I do not understand. Can anyone give me a hint? $ cabal install wx Resolving dependencies... cabal: cannot configure containers-0.3.0.0. It requires base >=4.2 && <6 For the dependency on base >=4.2 && <6 there are these packages: base-4.2.0.0. However none of them are available. base-4.2.0.0 was excluded because of the top level dependency base -any Here are my packages: $ ghc-pkg list /Library/Frameworks/GHC.framework/Versions/610/usr/lib/ghc-6.10.4/./package.conf: Cabal-1.6.0.3, GLUT-2.1.1.2, HTTP-4000.0.6, HUnit-1.2.0.3, OpenGL-2.2.1.1, QuickCheck-1.2.0.0, array-0.2.0.0, base-3.0.3.1, base-4.1.0.0, bytestring-0.9.1.4, cgi-3001.1.7.1, containers-0.2.0.1, directory-1.0.0.3, (dph-base-0.3), (dph-par-0.3), (dph-prim-interface-0.3), (dph-prim-par-0.3), (dph-prim-seq-0.3), (dph-seq-0.3), editline-0.2.1.0, extensible-exceptions-0.1.1.0, fgl-5.4.2.2, filepath-1.1.0.2, (ghc-6.10.4), ghc-prim-0.1.0.0, haddock-2.4.2, haskell-src-1.0.1.3, haskell98-1.0.1.0, hpc-0.5.0.3, html-1.0.1.2, integer-0.1.0.1, mtl-1.1.0.2, network-2.2.1.2, network-2.2.1.4, old-locale-1.0.0.1, old-time-1.0.0.2, packedstring-0.1.0.1, parallel-1.1.0.1, parsec-2.1.0.1, pretty-1.0.1.0, process-1.0.1.1, random-1.0.0.1, regex-base-0.72.0.2, regex-compat-0.71.0.1, regex-posix-0.72.0.3, rts-1.0, stm-2.1.1.2, syb-0.1.0.1, template-haskell-2.3.0.1, time-1.1.2.4, time-1.1.4, unix-2.3.2.0, xhtml-3000.2.0.1, zlib-0.5.0.0 /Users/davidplace/.ghc/i386-darwin-6.10.4/package.conf: fingertree-0.0.1.0

On 11 March 2010 09:14, David Place
$ cabal install wx Resolving dependencies... cabal: cannot configure containers-0.3.0.0. It requires base >=4.2 && <6 For the dependency on base >=4.2 && <6 there are these packages: base-4.2.0.0. However none of them are available. base-4.2.0.0 was excluded because of the top level dependency base -any
This means that this version of wx requires GHC 6.12 (since base-4.2.0.0 comes with 6.12.1). A version of the platform based around 6.12.1 should be coming out next month (apparently). -- Ivan Lazar Miljenovic Ivan.Miljenovic@gmail.com IvanMiljenovic.wordpress.com

Am Mittwoch 10 März 2010 23:31:15 schrieb Ivan Miljenovic:
On 11 March 2010 09:14, David Place
wrote: $ cabal install wx Resolving dependencies... cabal: cannot configure containers-0.3.0.0. It requires base >=4.2 && <6 For the dependency on base >=4.2 && <6 there are these packages: base-4.2.0.0. However none of them are available. base-4.2.0.0 was excluded because of the top level dependency base -any
That's cabal's very odd way to tell you that you don't have a base >= 4.2 installed (and it can't get you a new version of base, since that's really baked into the compiler).
This means that this version of wx requires GHC 6.12 (since base-4.2.0.0 comes with 6.12.1).
Yes. And it requires Cabal >= 1.8, since the Cabal API changed. However, the only changes to the previous versions were edits in the cabal files and one Setup.hs, so cabal install wx-0.12.1.2 wxcore-0.12.1.2 wxdirect-0.12.1.1 has good chances to work on 6.10.*
A version of the platform based around 6.12.1 should be coming out next month (apparently).

On Mar 10, 2010, at 6:33 PM, Daniel Fischer wrote:
cabal install wx-0.12.1.2 wxcore-0.12.1.2 wxdirect-0.12.1.1
has good chances to work on 6.10.*
I have managed to install and compile this version of wxHaskell. Now, I have a problem using it. The instructions on the use of wxHaskell on OSX say to follow this recipe:
cd samples/wx ghc -package wx -o helloworld HelloWorld.hs /usr/local/wxhaskell/bin/macosx-app -v helloworld open helloworld.app
The installation did not create the directory /usr/local/wxhaskell and I can't find the macosx-app anywhere else. Help, please. Thanks.
participants (3)
-
Daniel Fischer
-
David Place
-
Ivan Miljenovic