Pergunta

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

Foi útil?

Solução

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.

Outras dicas

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

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top