Mac OS X: Difference between revisions
(→Mac OS X 10.6 (Snow Leopard): uninstall) |
(remove standalone GHC installer, since with 6.12 this is not recommended anymore) |
||
Line 5: | Line 5: | ||
To install GHC on Mac OS X 10.5 (Leopard), there are the following options: | To install GHC on Mac OS X 10.5 (Leopard), there are the following options: | ||
* install the [http://hackage.haskell.org/platform/ Haskell Platform] | * install the [http://hackage.haskell.org/platform/ Haskell Platform] | ||
* install [http://www.macports.org MacPort]'s [http://trac.macports.org/browser/trunk/dports/lang/ghc/Portfile ghc] package | * install [http://www.macports.org MacPort]'s [http://trac.macports.org/browser/trunk/dports/lang/ghc/Portfile ghc] package | ||
Revision as of 09:00, 4 November 2009
GHC
Mac OS X 10.5 (Leopard)
To install GHC on Mac OS X 10.5 (Leopard), there are the following options:
- install the Haskell Platform
- install MacPort's ghc package
Mac OS X 10.6 (Snow Leopard)
Mac OS X 10.6.x (Snow Leopard) is currently not well supported. The problem is that GHC generates 32bit code, but gcc on Snow Leopard defaults to 64bit code now.
The workaround is to tell gcc to accept 32bit code:
- install the Haskell Platform
- patch the following wrapper scripts to include the flags "-optc-m32 -opta-m32 -optl-m32":
- /usr/bin/ghc
- /usr/bin/ghci
- /usr/bin/runhaskell
- /usr/bin/runghc
- /usr/bin/hsc2hs
See also Haskell on Snow Leopard.
To uninstall call:
sudo /Library/Frameworks/GHC.framework/Tools/Uninstaller
HUGS
Editors with Haskell support
Open Source
- AquaMacs, a graphical Emacs version
- Eclipse with the EclipseFP plugin
- Emacs, is installed on every Mac
- Leksah
- MacVim, a graphical Vim version
- Vim, is installed on every Mac
- Yi (written in Haskell itself!), is available through cabal-install
Commercial
and Smultron:
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.
Shipping Installable Haskell Applications
- mkbndl builds installable Mac OSX applications from your Haskell project.
Links
- Using Haskell in an Xcode Cocoa project; a description of how to add a Haskell module (callable from C) to an Xcode/Cocoa/Interface builder project on your Mac.