Fwd: problem with cabal install MissingH-1.1.1.0

Ooops, apparently I forgot to reply to the list. Sorry.
---------- Forwarded message ----------
From: Ozgur Akgun
I'm with mac OS X lion, ghc version 7.2.1 and when a i try to install MissingH version 1.1.1.0 it fails with
[24 of 47] Compiling Data.BinPacking ( src/Data/BinPacking.hs, dist/build/Data/BinPacking.o )
src/Data/BinPacking.hs:45:6: Illegal datatype context (use -XDatatypeContexts): (Num size,
This is weird, because on OS X Lion, and with the following versions, it doesn't fail for me: The Glorious Glasgow Haskell Compilation System, version 7.2.1 cabal-install version 0.10.2 using version 1.12.0 of the Cabal library Nevertheless, you can try the following to do what cabal asks you to do: cabal install --ghc-option=-XDatatypeContexts Which will give a warning, but should succeed anyway. Hope this helps, Ozgur -- Ozgur Akgun

Hey! Thanks to all for the answers... i didn't know about ghc 7.2. I uninstalled ghc and reinstalled using homebrew (mac package manager). Now I have: The Glorious Glasgow Haskell Compilation System, version 7.0.4 cabal is: /usr/bin ➜ cabal --version cabal-install version 0.10.2 using version 1.10.2.0 of the Cabal library And now, I was able to install MissingH, but still can't make EclipseFP work correctly :S When i start EclipseFP, it tries to build the scion-browser, but it fails inmediately with a message from cabal: cabal: The program ghc version >=6.4 is required but it could not be found. Google wasn't much help. Is anybody using EclipseFP? I've installed version 2.1 in eclipse indigo. I'm a regular eclipse user, but with haskell i'm lost. Best, Mariano * *

On 23 September 2011 13:10, Mariano Cortesi
Hey! Thanks to all for the answers... i didn't know about ghc 7.2. I uninstalled ghc and reinstalled using homebrew (mac package manager). Now I have: The Glorious Glasgow Haskell Compilation System, version 7.0.4 cabal is: /usr/bin ➜ cabal --version cabal-install version 0.10.2 using version 1.10.2.0 of the Cabal library And now, I was able to install MissingH, but still can't make EclipseFP work correctly :S When i start EclipseFP, it tries to build the scion-browser, but it fails inmediately with a message from cabal:
cabal: The program ghc version >=6.4 is required but it could not be found.
Google wasn't much help. Is anybody using EclipseFP? I've installed version 2.1 in eclipse indigo. I'm a regular eclipse user, but with haskell i'm lost.
I wonder if that's because cabal is looking in the wrong place for ghc... is ghc on your PATH? -- Ivan Lazar Miljenovic Ivan.Miljenovic@gmail.com IvanMiljenovic.wordpress.com

There are for sure people who know better Haskell on Mac than me.
When I made tests for EclipseFP, I just used the latest Haskell Platform
release containing GHC 7.0.3 and it worked fine. Maybe the best thing you
can do is start all over again using Haskell platform, if you don't need any
new feature in GHC 7.2
Other option is compiling the development version of scion-class-browser
(you can find it in https://github.com/serras/scion-class-browser) which
drops the dependency on MissingH, and tell EclipseFP to use that version.
2011/9/23 Mariano Cortesi
Hey!
Thanks to all for the answers... i didn't know about ghc 7.2.
I uninstalled ghc and reinstalled using homebrew (mac package manager). Now I have:
The Glorious Glasgow Haskell Compilation System, version 7.0.4
cabal is:
/usr/bin ➜ cabal --version cabal-install version 0.10.2 using version 1.10.2.0 of the Cabal library
And now, I was able to install MissingH, but still can't make EclipseFP work correctly :S
When i start EclipseFP, it tries to build the scion-browser, but it fails inmediately with a message from cabal:
cabal: The program ghc version >=6.4 is required but it could not be found.
Google wasn't much help. Is anybody using EclipseFP? I've installed version 2.1 in eclipse indigo. I'm a regular eclipse user, but with haskell i'm lost.
Best,
Mariano
* *
_______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

On Thu, Sep 22, 2011 at 23:10, Mariano Cortesi
When i start EclipseFP, it tries to build the scion-browser, but it fails inmediately with a message from cabal:
cabal: The program ghc version >=6.4 is required but it could not be found.
Google wasn't much help. Is anybody using EclipseFP? I've installed version 2.1 in eclipse indigo. I'm a regular eclipse user, but with haskell i'm lost.
You probably want to set $PATH from ~/.MacOSX/environment.plist instead of in the shell config files. http://developer.apple.com/library/mac/#qa/qa1067/_index.html Here's a preference pane to help maintain environment.plist: http://www.macupdate.com/app/mac/14617/rcenvironment (I use one which *used* to be available from Apple, but seems to have vanished along with a bunch of other stuff. Sigh.) -- brandon s allbery allbery.b@gmail.com wandering unix systems administrator (available) (412) 475-9364 vm/sms
participants (5)
-
Alejandro Serrano Mena
-
Brandon Allbery
-
Ivan Lazar Miljenovic
-
Mariano Cortesi
-
Ozgur Akgun