Status of Haskell under OsX

Hi, I'm planning to purchase a MacBookPro so I'm wondering how well Haskell is supported under this platform. Thanks, Cristiano

I use Haskell under OSX only. I find it very well supported. -Ross On Feb 25, 2009, at 2:37 PM, Cristiano Paris wrote:
Hi,
I'm planning to purchase a MacBookPro so I'm wondering how well Haskell is supported under this platform.
Thanks,
Cristiano _______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

I've got an iMac; ghc from MacPorts seems to work fine. On 25 Feb 2009, at 22:37, Cristiano Paris wrote:
Hi,
I'm planning to purchase a MacBookPro so I'm wondering how well Haskell is supported under this platform.
Thanks,
Cristiano _______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

On Wednesday 25 February 2009 11:37:15 am Cristiano Paris wrote:
Hi,
I'm planning to purchase a MacBookPro so I'm wondering how well Haskell is supported under this platform.
Thanks,
Cristiano
GHC on linux/ppc is not very well supported, but since all new macbooks are
intel that shouldn't be an issue. And you're probably going to run OS X
anyways.
Regards,
--
Conrad Meyer

The one thing that isn't supported in GHC on Mac OS is the generation
of 64-bit code (better if you have lots of RAM you want to take
advantage of, and also has a lot more independent registers for tight
loops), but with any luck that will change soon (I've been trying to
get it to work).
Cheers,
Dan
On Wed, Feb 25, 2009 at 2:52 PM, Conrad Meyer
On Wednesday 25 February 2009 11:37:15 am Cristiano Paris wrote:
Hi,
I'm planning to purchase a MacBookPro so I'm wondering how well Haskell is supported under this platform.
Thanks,
Cristiano
GHC on linux/ppc is not very well supported, but since all new macbooks are intel that shouldn't be an issue. And you're probably going to run OS X anyways.
Regards, -- Conrad Meyer
_______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

I'm planning to purchase a MacBookPro so I'm wondering how well Haskell is supported under this platform.
At least two of the regular contributors to GHC work on Macs. That should ensure that Mac OS X is well supported. Installation is trivial with the Mac OS X installer package: http://haskell.org/ghc/download_ghc_6_10_1.html#macosxintel Manuel

On Thu, Feb 26, 2009 at 2:31 AM, Manuel M T Chakravarty
I'm planning to purchase a MacBookPro so I'm wondering how well Haskell is supported under this platform.
At least two of the regular contributors to GHC work on Macs. That should ensure that Mac OS X is well supported. Installation is trivial with the Mac OS X installer package:
Thank you all for your answers. Cristiano

Manuel M T Chakravarty wrote:
I'm planning to purchase a MacBookPro so I'm wondering how well Haskell is supported under this platform.
At least two of the regular contributors to GHC work on Macs. That should ensure that Mac OS X is well supported. Installation is trivial with the Mac OS X installer package:
http://haskell.org/ghc/download_ghc_6_10_1.html#macosxintel Hi, following on from this point:
How does one get gtk2hs running on a mac? I have a MacBook Pro, and I've had ghc installed for some time now. (first in 6.8.2 (packaged), then 6.10.1 (packaged), then 6.8.2 via macports 1.6 then 6.10.1 via macports 1.7) I tried to install gtk2hs via macports, but it didn't work. (0.9.12? on 6.8.2, then on 6.10.1) Is there a recipe one could follow? Can I get the preconditions via macports, and then use cabal to install gtk2hs 0.10? Grateful for assistance, Arne D H
Manuel
_______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

On 27 Feb 2009, at 08:17, Arne Dehli Halvorsen wrote:
Manuel M T Chakravarty wrote:
I'm planning to purchase a MacBookPro so I'm wondering how well Haskell is supported under this platform.
At least two of the regular contributors to GHC work on Macs. That should ensure that Mac OS X is well supported. Installation is trivial with the Mac OS X installer package:
Good advice, but I've generally found the MacPorts version more consistantly built – plus, sudo port install ghc is nice and easy :)
Hi, following on from this point:
How does one get gtk2hs running on a mac?
I have a MacBook Pro, and I've had ghc installed for some time now.
(first in 6.8.2 (packaged), then 6.10.1 (packaged), then 6.8.2 via macports 1.6 then 6.10.1 via macports 1.7)
I tried to install gtk2hs via macports, but it didn't work. (0.9.12? on 6.8.2, then on 6.10.1) Is there a recipe one could follow? Can I get the preconditions via macports, and then use cabal to install gtk2hs 0.10?
For me, this worked: sudo port install ghc sudo port install gtk2 sudo port install cairomm curl http://downloads.sourceforge.net/gtk2hs/gtk2hs-0.10.0.tar.gz > gtk2hs-0.10.0.tar.gz tar xvfz gtk2hs-0.10.0.tar.gz normal install stuff here. Bob

Thomas Davie wrote:
For me, this worked: sudo port install ghc sudo port install gtk2 sudo port install cairomm curl http://downloads.sourceforge.net/gtk2hs/gtk2hs-0.10.0.tar.gz > gtk2hs-0.10.0.tar.gz tar xvfz gtk2hs-0.10.0.tar.gz normal install stuff here.
It worked! I had to throw out gtk2, which was present in an incompatible version. Then I did make/make install, and tried compiling a few apps in the demo catalog. Most of them show up, but with these errors: Xlib: extension "RANDR" missing on display "/tmp/launch-UoNAfJ/:0". Xlib: extension "Generic Event Extension" missing on display "/tmp/launch-UoNAfJ/:0". Testing out the demos, it seems it can't find Graphics.UI.Gtk.Glade, Graphics.Rendering.OpenGL System.Gnome.GConf System.Gnome.VFS Media.Streaming.GStreamer Graphics.UI.Gtk.MozEmbed Graphics.UI.Gtk.SourceView Graphics.Rendering.Cairo.SVG Any idea on whether I should: port install some package port install some package + reinstall gtk2hs haskell install some package haskell install some package + reinstall gtk2hs? In pango, I get Layout.hs:41:44: Not in scope: type constructor or class `Event' Layout.hs:42:20: Not in scope: data constructor `Expose' ..but I got that on Windows too. ...and demo/arabic does not show any arabic
Bob

On 27 Feb 2009, at 11:21, Arne Dehli Halvorsen wrote:
Thomas Davie wrote:
For me, this worked: sudo port install ghc sudo port install gtk2 sudo port install cairomm curl http://downloads.sourceforge.net/gtk2hs/gtk2hs-0.10.0.tar.gz > gtk2hs-0.10.0.tar.gz tar xvfz gtk2hs-0.10.0.tar.gz normal install stuff here.
It worked! I had to throw out gtk2, which was present in an incompatible version.
Then I did make/make install, and tried compiling a few apps in the demo catalog. Most of them show up, but with these errors: Xlib: extension "RANDR" missing on display "/tmp/launch-UoNAfJ/:0". Xlib: extension "Generic Event Extension" missing on display "/tmp/ launch-UoNAfJ/:0". Yep, I see these errors too – even after sudo port install randr.
Testing out the demos, it seems it can't find Graphics.UI.Gtk.Glade, Graphics.Rendering.OpenGL System.Gnome.GConf System.Gnome.VFS Media.Streaming.GStreamer Graphics.UI.Gtk.MozEmbed Graphics.UI.Gtk.SourceView Graphics.Rendering.Cairo.SVG Perhaps the demos are out of date? Graphics.Rendering.OpenGL is found in the OpenGL package, and System.Gnome looks unlikely to work on OS X.
Bob

Thomas Davie wrote:
Testing out the demos, it seems it can't find Graphics.UI.Gtk.Glade, Graphics.Rendering.OpenGL System.Gnome.GConf System.Gnome.VFS Media.Streaming.GStreamer Graphics.UI.Gtk.MozEmbed Graphics.UI.Gtk.SourceView Graphics.Rendering.Cairo.SVG Perhaps the demos are out of date? Graphics.Rendering.OpenGL is found in the OpenGL package, and System.Gnome looks unlikely to work on OS X. Did a macports install of glade (took ages!), gtkglext, gconf, glut. Reran configure/make/make install for gtk2hs
Also did macports install of hs-cabal, then cabal update cabal install opengl cabal install glut Was a little confused for a while because Porticus (ports GUI) was out of date. Maybe I could have installed ghc, hs-cabal + all gtk preconditions, and then installed gtk2hs++ via cabal? Anyway, the opengl demo and the glade demos run now, and if I need mozembed and similar, I trust I will be able to get them in in a similar way. Thanks for helping, I am looking forward to creating GUIs.
Bob
Arne D Halvorsen

On 2009 Feb 27, at 5:21, Arne Dehli Halvorsen wrote:
Xlib: extension "RANDR" missing on display "/tmp/launch-UoNAfJ/:0". Xlib: extension "Generic Event Extension" missing on display "/tmp/ launch-UoNAfJ/:0".
This is expected; X11.app doesn't support either extension, regardless of what libraries you have installed. (Some of us have argued to the Apple X11 folks that XRandR should be supported, but unsuccessfully so far.)
Testing out the demos, it seems it can't find Graphics.UI.Gtk.Glade, Graphics.Rendering.OpenGL System.Gnome.GConf System.Gnome.VFS Media.Streaming.GStreamer Graphics.UI.Gtk.MozEmbed Graphics.UI.Gtk.SourceView Graphics.Rendering.Cairo.SVG
You just have to install the corresponding library ports, then rebuild Gtk2hs.
...and demo/arabic does not show any arabic
In my experience X11.app does a poor job translating non-Roman character sets between itself and the WindowServer (X11.app is a protocol adapter, not a full-fledged X11 server; this is also why XRandR isn't supported). -- brandon s. allbery [solaris,freebsd,perl,pugs,haskell] allbery@kf8nh.com system administrator [openafs,heimdal,too many hats] allbery@ece.cmu.edu electrical and computer engineering, carnegie mellon university KF8NH

On Fri, Feb 27, 2009 at 12:04 AM, Thomas Davie
On 27 Feb 2009, at 08:17, Arne Dehli Halvorsen wrote:
Manuel M T Chakravarty wrote:
I'm planning to purchase a MacBookPro so I'm wondering how well
Haskell is supported under this platform.
At least two of the regular contributors to GHC work on Macs. That should ensure that Mac OS X is well supported. Installation is trivial with the Mac OS X installer package:
Good advice, but I've generally found the MacPorts version more consistantly built – plus, sudo port install ghc is nice and easy :)
Does the MacPort have GMP linked statically or dynamically? I haven't gotten around to trying to build things with a dynamic libgmp yet... but it's not fun to have LGPL statically linked stuff if you care about your own licensing terms.
Hi, following on from this point:
How does one get gtk2hs running on a mac?
I have a MacBook Pro, and I've had ghc installed for some time now.
(first in 6.8.2 (packaged), then 6.10.1 (packaged), then 6.8.2 via macports 1.6 then 6.10.1 via macports 1.7)
I tried to install gtk2hs via macports, but it didn't work. (0.9.12? on 6.8.2, then on 6.10.1) Is there a recipe one could follow? Can I get the preconditions via macports, and then use cabal to install gtk2hs 0.10?
For me, this worked: sudo port install ghc sudo port install gtk2 sudo port install cairomm curl http://downloads.sourceforge.net/gtk2hs/gtk2hs-0.10.0.tar.gz > gtk2hs-0.10.0.tar.gz tar xvfz gtk2hs-0.10.0.tar.gz normal install stuff here.
Bob_______________________________________________
Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

BTW, there is a nice native version of GTK for Mac OS X as a proper framework: http://www.gtk-osx.org/ Unfortunately, it seems rather difficult to build gtk2hs with the GTK+ framework as the framework doesn't support pkg-config and gtk2hs knows nothing about Mac frameworks. However, GHC has support for frameworks; so, it should be possible to get this to work. Manuel Arne Dehli Halvorsen:
Manuel M T Chakravarty wrote:
I'm planning to purchase a MacBookPro so I'm wondering how well Haskell is supported under this platform.
At least two of the regular contributors to GHC work on Macs. That should ensure that Mac OS X is well supported. Installation is trivial with the Mac OS X installer package:
http://haskell.org/ghc/download_ghc_6_10_1.html#macosxintel Hi, following on from this point:
How does one get gtk2hs running on a mac?
I have a MacBook Pro, and I've had ghc installed for some time now.
(first in 6.8.2 (packaged), then 6.10.1 (packaged), then 6.8.2 via macports 1.6 then 6.10.1 via macports 1.7)
I tried to install gtk2hs via macports, but it didn't work. (0.9.12? on 6.8.2, then on 6.10.1) Is there a recipe one could follow? Can I get the preconditions via macports, and then use cabal to install gtk2hs 0.10?
Grateful for assistance, Arne D H
Manuel

I use this configuration exclusively... it wasn't actually that hard to set up once I found out that the .pc files are shipped in a strange directory buried in the frameworks. I posted how I got it working back in December: http://sourceforge.net/mailarchive/message.php?msg_name=3E883695-30D3-4CBE-A... -Ross On Mar 2, 2009, at 6:39 PM, Manuel M T Chakravarty wrote:
BTW, there is a nice native version of GTK for Mac OS X as a proper framework:
Unfortunately, it seems rather difficult to build gtk2hs with the GTK + framework as the framework doesn't support pkg-config and gtk2hs knows nothing about Mac frameworks. However, GHC has support for frameworks; so, it should be possible to get this to work.
Manuel
Arne Dehli Halvorsen:
Manuel M T Chakravarty wrote:
I'm planning to purchase a MacBookPro so I'm wondering how well Haskell is supported under this platform.
At least two of the regular contributors to GHC work on Macs. That should ensure that Mac OS X is well supported. Installation is trivial with the Mac OS X installer package:
http://haskell.org/ghc/download_ghc_6_10_1.html#macosxintel Hi, following on from this point:
How does one get gtk2hs running on a mac?
I have a MacBook Pro, and I've had ghc installed for some time now.
(first in 6.8.2 (packaged), then 6.10.1 (packaged), then 6.8.2 via macports 1.6 then 6.10.1 via macports 1.7)
I tried to install gtk2hs via macports, but it didn't work. (0.9.12? on 6.8.2, then on 6.10.1) Is there a recipe one could follow? Can I get the preconditions via macports, and then use cabal to install gtk2hs 0.10?
Grateful for assistance, Arne D H
Manuel
_______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Ross Mellgren:
I use this configuration exclusively... it wasn't actually that hard to set up once I found out that the .pc files are shipped in a strange directory buried in the frameworks.
I posted how I got it working back in December: http://sourceforge.net/mailarchive/message.php?msg_name=3E883695-30D3-4CBE-A...
That does work nicely. Thanks for the pointer. I added a paragraph on the Haskell wiki for easy reference: http://www.haskell.org/haskellwiki/Gtk2Hs#Using_the_GTK.2B_OS_X_Framework Manuel
On Mar 2, 2009, at 6:39 PM, Manuel M T Chakravarty wrote:
BTW, there is a nice native version of GTK for Mac OS X as a proper framework:
Unfortunately, it seems rather difficult to build gtk2hs with the GTK+ framework as the framework doesn't support pkg-config and gtk2hs knows nothing about Mac frameworks. However, GHC has support for frameworks; so, it should be possible to get this to work.
Manuel
Arne Dehli Halvorsen:
Manuel M T Chakravarty wrote:
I'm planning to purchase a MacBookPro so I'm wondering how well Haskell is supported under this platform.
At least two of the regular contributors to GHC work on Macs. That should ensure that Mac OS X is well supported. Installation is trivial with the Mac OS X installer package:
http://haskell.org/ghc/download_ghc_6_10_1.html#macosxintel Hi, following on from this point:
How does one get gtk2hs running on a mac?
I have a MacBook Pro, and I've had ghc installed for some time now.
(first in 6.8.2 (packaged), then 6.10.1 (packaged), then 6.8.2 via macports 1.6 then 6.10.1 via macports 1.7)
I tried to install gtk2hs via macports, but it didn't work. (0.9.12? on 6.8.2, then on 6.10.1) Is there a recipe one could follow? Can I get the preconditions via macports, and then use cabal to install gtk2hs 0.10?
Grateful for assistance, Arne D H
Manuel
_______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
_______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
participants (10)
-
Arne Dehli Halvorsen
-
Brandon S. Allbery KF8NH
-
Conrad Meyer
-
Cristiano Paris
-
Daniel Peebles
-
David Leimbach
-
Manuel M T Chakravarty
-
Miguel Mitrofanov
-
Ross Mellgren
-
Thomas Davie