how to install a working haskell compiler on OSX?

I have downloaded the haskell platform 2013.2.OO 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

链接地址: http://www.djcxy.com/p/33316.html

上一篇: GHC在64位Windows上的现状是什么?

下一篇: 如何在OSX上安装工作的haskell编译器?