Skip to content

Instantly share code, notes, and snippets.

@mchakravarty
Last active August 29, 2015 14:01
Show Gist options
  • Save mchakravarty/fb8ecc1be86df1a23b33 to your computer and use it in GitHub Desktop.
Save mchakravarty/fb8ecc1be86df1a23b33 to your computer and use it in GitHub Desktop.
YOW! Lambda Jam 2014 — Foreign Inline Code in Haskell — Instructions for the workshop

Installation instructions

Prerequisites: OS X with the latest Xcode and command line tools installed (or just the command line tools)

(If you haven't got a machine with OS X, please pair up with a participant who has got a Mac at the workshop.)

Install the Haskell Platform (2013.2.0.0, 64 bit): http://www.haskell.org/platform/mac.html (Note the special installation instructions for using the Haskell Platform with Xcode 5.)

Now, that you have got a Haskell system, install language-c-inline, the library implementing inline C code for Haskell.

$ cabal update
$ cabal install language-c-inline-0.5.0.0

Get a coffee.

Now, we need a few more libraries for our example programs.

$ cabal install hint

That's it!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment