http://www.haskell.org/ghc/docs/latest/html/users_guide/ffi.html
http://www.haskell.org/ghc/docs/latest/html/users_guide/ffi-ghc.html