Difference between revisions of "Mac OS X"

From HaskellWiki
Jump to navigation Jump to search
(→‎GHC: 10.6 vs 10.5)
Line 1: Line 1:
 
== GHC ==
 
== GHC ==
  +
  +
=== Mac OS X 10.5 (Leopard) ===
   
 
To install GHC on Mac OS X, there are the following options:
 
To install GHC on Mac OS X, there are the following options:
 
* [http://haskell.org/ghc/download_ghc_6_10_4.html#binaries Standalone installer]. Note: you need to have [http://developer.apple.com/technology/Xcode.html Xcode] installed
 
* [http://haskell.org/ghc/download_ghc_6_10_4.html#binaries Standalone installer]. Note: you need to have [http://developer.apple.com/technology/Xcode.html Xcode] installed
 
* GHC is available through [http://www.macports.org MacPorts] as package [http://trac.macports.org/browser/trunk/dports/lang/ghc/Portfile ghc]
 
* GHC is available through [http://www.macports.org MacPorts] as package [http://trac.macports.org/browser/trunk/dports/lang/ghc/Portfile ghc]
  +
  +
=== Mac OS X 10.6 (Snow Leopard) ===
   
 
* [http://obvioushints.blogspot.com/2009/09/running-haskell-ghc-on-snow-leopard.html Running GHC on Snow Leopard]
 
* [http://obvioushints.blogspot.com/2009/09/running-haskell-ghc-on-snow-leopard.html Running GHC on Snow Leopard]
  +
   
 
=== MacPorts ===
 
=== MacPorts ===

Revision as of 12:18, 7 September 2009

GHC

Mac OS X 10.5 (Leopard)

To install GHC on Mac OS X, there are the following options:

Mac OS X 10.6 (Snow Leopard)


MacPorts

MacPorts contains a Portfile for GHC. Using MacPorts to install GHC will take a while as your computer will compile all the source files itself. In most cases, you're better off installing GHC through the standalone installer (see next section).

If you have MacPorts installed and haven't told it to selfupdate in a while, do that first:

$ sudo port selfupdate

This will take up to a minute, so be patient. It tells MacPorts to retrieve the latest package information from its servers. Next, install GHC:

$ sudo port install ghc

MacPorts will first download and install any dependencies that are needed to install GHC; then it will download, build and install GHC itself. A point of caution however. MacPorts also provides GHC packages. If these are installed and then GHC is upgraded the packages need to be uninstalled and reinstalled, or they will not register properly with the upgraded GHC.

Standalone Installer for Mac OS X 10.5 (Intel)

There is a standalone installer available for Mac OS X 10.5 (Intel). It requires Xcode 3.0 to be already installed. If you do not have Xcode, you can install it from the installation DVD you got with you Mac or download it for free from Apple Developer Connection.

HUGS

There is a MacPorts package for Hugs (under the name hugs98).

Editors

Open Source

  • AquaMacs, a graphical Emacs version
  • Emacs, is installed on every Mac
  • MacVim, a graphical Vim version
  • Vim, is installed on every Mac
  • Yi (written in Haskell itself!), is available through cabal-install

Comercial

SubEthaEdit:

SubEthaEdit.png

TextMate:

TextMate.png

and Smultron:

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.

Shipping Installable Haskell Applications

  • mkbndl builds installable Mac OSX applications from your Haskell project.