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...

有帮助吗?

解决方案

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.

其他提示

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

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top