HaskellWiki

Haskell | Wiki community | Recent changes
Random page | Special pages

 

Not logged in
Log in | Help

Request an account if you don't have one.

Mac OS X

Categories: OS

Contents

1 GHC

1.1 Mac OS X 10.5 (Leopard)

To install GHC on Mac OS X 10.5 (Leopard), there are the following options:

1.2 Mac OS X 10.6 (Snow Leopard)

Mac OS X 10.6.x (Snow Leopard) works with GHC, after you apply a simple patch. The problem is that GHC generates 32bit code, but gcc on Snow Leopard defaults to 64bit code on machines with processors that support it. The patch simply tells GHC to tell gcc work in 32bit:

The last line in that file is rather long, and should now end like -dynload wrapped -optc-m32 -opta-m32 -optl-m32 ${1+"$@"}

Don't be tempted to just put an edited local copy of the script in ~/bin/ghc, or edit all the various GHC files in /usr/bin. There is a maze of twisty symlinks that all eventually lead to the above script, and fixing just it is far simpler.

See also Haskell on Snow Leopard.

To uninstall ghc call:

sudo /Library/Frameworks/GHC.framework/Tools/Uninstaller

2 HUGS

3 Editors with Haskell support

3.1 Open Source

3.2 Commercial

SubEthaEdit:

Image:SubEthaEdit.png

TextMate:

Image:TextMate.png

and Smultron:

Image:Smultron.png

TextEdit is Mac's default text editor, a very basic editor that works fine for most uses, you must however be careful to put it into plain text mode using the Format menu.

4 Shipping Installable Haskell Applications

5 Links

Retrieved from "http://haskell.cs.yale.edu/haskellwiki/Mac_OS_X"

This page has been accessed 21,623 times. This page was last modified 08:01, 23 November 2009. Recent content is available under a simple permissive license.