stian
stian

Reputation: 1987

how to install a working haskell compiler on OSX?

I have downloaded the haskell platform 2013.2.O.O 64 bit and installed it according to the guide on a OSX version 10.9.2 (where i used Xcode to install the gcc compiler). I get the ghci to work, but when i try to compile hello.hs (containing: main = putStrLn "Hello, World!") I get a lot of errors and missing files (for instance math.h, stint.h). I appreciate any help of what I have done wrong...

Upvotes: 1

Views: 217

Answers (2)

Lambdageek
Lambdageek

Reputation: 12475

You're using Xcode 5. There is a known compatibility issue between Xcode5 and GHC 7.6. See the Haskell Platform MacOS X page for a wrapper script that works around the issue.

Upvotes: 2

StevenC
StevenC

Reputation: 1172

I know this isn't exactly help with the path you've chosen so far, but if you've got homebrew...

brew install ghc haskell-platform

Current versions from brew are ghc 7.6.3 and platform 2013.2.0.0

Upvotes: 1

Related Questions