Why doesn't my GHC 7.6.3 work after upgrading to OSX Mavericks?
相关问题
- Understanding do notation for simple Reader monad:
- Making Custom Instances of PersistBackend
- Haskell: What is the differrence between `Num [a]
- applying a list to an entered function to check fo
- Haskell split a list into two by a pivot value
相关文章
- Is it possible to write pattern-matched functions
- Haskell underscore vs. explicit variable
- Top-level expression evaluation at compile time
- Stuck in the State Monad
- foldr vs foldr1 usage in Haskell
- List of checkboxes with digestive-functors
- How does this list comprehension over the inits of
- Replacing => in place of -> in function type signa
It took a long time to figure out how to Work with both OSX 10.9 and GHC 7.6.3, and here are some tips to help you get back to building haskell code.
Summary: Download command line tools for mavericks and use gcc version 4.2 (link to the correct gcc path in your ghc settings file)
Steps:
brew install apple-gcc42
Edit your settings file, Line 2. Update the C compiler location to point to this newer gcc. Depending on how you installed GHC, it could be one of the following...
Platform Edition
/Library/Frameworks/GHC.framework/Versions/Current/usr/lib/ghc-7.6.3/settings
Brew version of GHC
/usr/local/Cellar/ghc/7.6.3/lib/ghc-7.6.3/settings
GHC Installed from Source
/usr/local/lib/ghc-7.6.3/settings
It will look something like this:
A more detailed version for each step written can be found here.
Alternate approach: Use the XCode5 wrapper. Instructions here