[http://haskellformac.com Haskell for Mac] is an easy-to-use integrated programming environment for Haskell on OS X. It is a one-click install of a complete Haskell system, including Haskell compiler, editor, many libraries, and a novel form of interactive <em>Haskell playgrounds</em>. Haskell playgrounds support exploration and experimentation with code. They are convenient to learn functional programming, prototype Haskell code, interactively visualize data, and to create interactive animations.

+

+

Features include the following:

+

* Built-in Haskell editor with customisable themes, or you can use a separate text editor.

+

* Interactive Haskell playgrounds evaluate your code as you type.

+

* Easy to explore type information and to observe the behaviour of you program as you change it.

+

* Playground results can be text or images produced by the Rasterific, Diagrams, and Chart packages.

+

* Add code and multimedia files to a Haskell project with drag'n'drop.

Both Mountain Lion and Mavericks support and now use XCode 5, which no longer provides GCC, only Clang.

+

+

This should not be problem for GHC 7.8 and newer, but

+

If using GHC 7.6.* or older, one of several work arounds is needed!

+

+

The workaround that the Haskell Platform maintainers are supporting can be found [http://www.haskell.org/pipermail/haskell-cafe/2013-October/111174.html here]. That work around along with [http://justtesting.org/post/64947952690/the-glasgow-haskell-compiler-ghc-on-os-x-10-9 this one] work with only the system provided compilers.

+

+

However, if you are still encountering usual bugs, the GCC based directions [https://gist.github.com/cartazio/7131371 here] may work out better.

=== Mac OS X 10.5 (Leopard) ===

=== Mac OS X 10.5 (Leopard) ===

Line 74:

Line 100:

=== Open Source ===

=== Open Source ===

−

* [http://aquamacs.org/ AquaMacs], a graphical Emacs version

+

* [http://aquamacs.org/ AquaMacs] or [http://emacsforosx.com EmacsForOSX], a graphical Emacs version

* [http://eclipsefp.sourceforge.net/ Eclipse] with the [[EclipseFP]] plugin. See [[EclipseOn_Mac_OS_X]]

* [http://eclipsefp.sourceforge.net/ Eclipse] with the [[EclipseFP]] plugin. See [[EclipseOn_Mac_OS_X]]

* [http://www.gnu.org/software/emacs/ Emacs], is installed on every Mac

* [http://www.gnu.org/software/emacs/ Emacs], is installed on every Mac

Haskell for Mac is an easy-to-use integrated programming environment for Haskell on OS X. It is a one-click install of a complete Haskell system, including Haskell compiler, editor, many libraries, and a novel form of interactive Haskell playgrounds. Haskell playgrounds support exploration and experimentation with code. They are convenient to learn functional programming, prototype Haskell code, interactively visualize data, and to create interactive animations.

Features include the following:

Built-in Haskell editor with customisable themes, or you can use a separate text editor.

Interactive Haskell playgrounds evaluate your code as you type.

Easy to explore type information and to observe the behaviour of you program as you change it.

Playground results can be text or images produced by the Rasterific, Diagrams, and Chart packages.

Add code and multimedia files to a Haskell project with drag'n'drop.

Haskell binding to Apple's 2D animation and games framework SpriteKit.

To get the most out of your GHC environment, you should add '~/Library/Haskell/bin' to your PATH environment variable before the path where you have GHC installed. This will allow you to get and use cabal-updates, as well as other programs shipped with GHC like hsc2hs.

GHC needs Xcode to be installed so it has access to the bintools, headers, and link libraries of the platform. The later two are provided by the SDK that comes as part of Xcode. GHC 7.0.2 is compiled against the 10.5 SDK. Xcode 4.1 no longer ships with it. ghci will work, but linking and some compiles with <ghc> will not. To make those work you need a copy of the 10.5 SDK. You can get this one several ways:

Before you install Xcode 4.1, if you have Xcode 3.2 installed, do one of the following:

Move just the sdk aside, install Xcode 4.1, then move it back into the /Developer/SDKs directory.

If you don't have Xcode 3.2, then you can download it from the Apple Developer site, and install it in a location other than "/Developer". If you have already installed Xcode 4.1 be sure that you customized the install and don't install the "System Tools" or "UNIX Development" packages.

Some libraries depend on external C libraries, which are best installed with MacPorts. However, you have to tell cabal to include the /opt/local/ directories when searching for external libraries. The following shell script does that by wrapping the cabal utility