It's now quite easy to get Haskell and LLVM to install and play together on Mac OS X! Following some of the advise from here, you first need to remove your existing Haskell Platform and packages:
> sudo /Library/Frameworks/GHC.framework/Tools/Uninstaller
> rm -rdf ~/.ghc
> rm -rdf ~/.cabal
If you don't already have Homebrew installed, go ahead and do that.
Now for the fun! (Although pour yourself a cup of coffee as this takes a while...)
> brew install llvm --universal
Note that the "--universal" option is critical! If you don't specify this, the LLVM Haskell library will not build. Note: you may also wish to specify "--with-clang" if you'd like to simultaneously build clang as well.
> brew install haskell-platform
> cabal update
> cabal install llvm
> ghci
Prelude> :m LLVM.Core
Prelude LLVM.Core>
Viola!
The topic will be functional programming with emphasis on Haskell. I'm also writing my own language called Mikan and hope to share progress here. So let's have fun!
Wednesday, February 2, 2011
Subscribe to:
Post Comments (Atom)
Other Works by this Author
About Me
- Michael O'Keefe
- A comic artist, sometimes programmer, and engineer in the field of renewable energy.
Tags
- Haskell (6)
- Python (2)
- ghc (2)
- keyword arguments (2)
- pure function (2)
- ABC (1)
- LLVM (1)
- Pascal (1)
- Ruby (1)
- add (1)
- addable (1)
- cats (1)
- currying (1)
- games (1)
- lambda (1)
- linked lists (1)
- mathematics (1)
- readline (1)
- record syntax (1)
- strings (1)
- type class (1)
0 comments:
Post a Comment