Search code examples
ioshaskellcode-translation

Translating Haskell to C for use on iPhone


I've written a Haskell library I would like to include in an iPhone app. It makes heavy use of Haskell's functional abilities, currying, etc. and rewriting in Objective-C would be tough.

Is it possible to automatically translate Haskell to C? or dig out an intermediate C representation from one of the compilers?

Apple's developer agreement forbids statically linking one of the lightweight Haskell interpreters, not that I'm keen on that solution.


Solution

  • I haven't used it but there is http://projects.haskell.org/ghc-iphone/