[Haskell-cafe] Ease of Haskell development on OS X?

Hans Aberg haberg at math.su.se
Fri Mar 20 18:35:41 EDT 2009


On 20 Mar 2009, at 22:44, Miguel Mitrofanov wrote:

> A bit out of date:
>
> MigMit:~ MigMit$ port info ghc
> ghc @6.10.1, Revision 8 (lang, haskell)
> ...blah-blah...
>
> Maybe, your $(port version) is still 1.600?

Yes, now it worked:
$ port version
Version: 1.700

$ port info ghc
ghc @6.10.1, Revision 9 (lang, haskell)
Variants:    darwin_6, darwin_7, darwin_8_i386, darwin_8_powerpc,  
darwin_9_i386, darwin_9_powerpc
...

One more thing to keep in is this line "Variants:...":

Packages can have variants, and when installing, one can choose  
between them, and even have several different installed  
simultaneously, switching between them. This may make a difference on  
a package like Gtk+. I get:
   gtk2 @2.14.7, Revision 1 (x11)
   Variants:    darwin_7, darwin_8, no_x11, quartz, universal, x11
   ...
So when installing it, one should type
   sudo install gtk2

Also, MacPorts is very careful using full paths to its own components.  
This makes a very safe build. But it is a problem for libraries if one  
wants to redistribute them: They are hardcoded to the MacPorts  
location in /opt/ (calling each other). If one wants to make programs  
that can be distributed either in /usr/local/ or as Mac OS X native / 
Applications/, then the only way seems to be to do all the package  
chasing.

Therefore, it might be best trying to use
   http://www.gtk-osx.org/
But it will then only work on Intel Macs (or at least when I checked  
it out).

   Hans




More information about the Haskell-Cafe mailing list