Seems that someone in this list got hugs working on the iPhone...
Miguel, are you out there?
On Sun, Sep 14, 2008 at 4:56 PM, Braden Shepherdson <Braden.Shepherdson@xxxxxxxxx>
I failed completely to mention Hugs: I don't think it exists, but I think someone managed to port it to the Nintendo DS a while back, so it should be possible.
Braden Shepherdson wrote:
Alberto R. Galdo wrote:
Hi, is there any chance of having hugs compile for the iPhone?
Cross-compiling? Compiling directly on the iPhone?
The iPhone, like most modern mobile devices, is based on the ARM processor, for which there is currently no GHC port.
However, jhc outputs portable C code which can be (cross) compiled for ARM. I have succeeded in building Haskell code with jhc on my desktop (x86 Linux), then cross-compiling the resulting C code in a scratchbox environment for my Nokia N810.
In short, if you can compile C code for the iPhone (cross-compiled or native), you can probably use jhc to turn Haskell into suitable C.
jhc is not self-hosting, and it requires gcc as a back-end, so it isn't suitable for running on the device.
See also the GHC-on-ARM project, an attempt to port GHC to ARM Linux devices.
Haskell-Cafe mailing list