<div dir="ltr">Seems that someone in this list got hugs working on the iPhone...<div><br></div><div><a href="http://www.nabble.com/Re%3A-xmonad-on-the-openmoko-mobile-phone-p18914746.html">http://www.nabble.com/Re%3A-xmonad-on-the-openmoko-mobile-phone-p18914746.html</a></div>
<div><br></div><div>Miguel, are you out there?</div><div><br><br><div class="gmail_quote">On Sun, Sep 14, 2008 at 4:56 PM, Braden Shepherdson <span dir="ltr">&lt;<a href="mailto:Braden.Shepherdson@gmail.com">Braden.Shepherdson@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div class="Ih2E3d">Braden Shepherdson wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Alberto R. Galdo wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi, is there any chance of having hugs &nbsp;compile for the iPhone?<br>
<br>
Cross-compiling? Compiling directly on the iPhone?<br>
<br>
Greets,<br>
Alberto<br>
</blockquote>
<br>
The iPhone, like most modern mobile devices, is based on the ARM processor, for which there is currently no GHC port.<br>
<br>
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.<br>

<br>
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.<br>
<br>
jhc is not self-hosting, and it requires gcc as a back-end, so it isn&#39;t suitable for running on the device.<br>
<br>
See also the GHC-on-ARM project[1], an attempt to port GHC to ARM Linux devices.<br>
<br>
<br>
Braden Shepherdson<br>
shepheb<br>
<br>
[1] <a href="http://hackage.haskell.org/trac/ghc/wiki/ArmLinuxGhc" target="_blank">http://hackage.haskell.org/trac/ghc/wiki/ArmLinuxGhc</a><br>
</blockquote>
<br>
<br></div>
I failed completely to mention Hugs: I don&#39;t think it exists, but I think someone managed to port it to the Nintendo DS a while back, so it should be possible.<br><font color="#888888">
<br>
<br>
Braden Shepherdson<br>
shepheb</font><div><div></div><div class="Wj3C7c"><br>
<br>
_______________________________________________<br>
Haskell-Cafe mailing list<br>
<a href="mailto:Haskell-Cafe@haskell.org" target="_blank">Haskell-Cafe@haskell.org</a><br>
<a href="http://www.haskell.org/mailman/listinfo/haskell-cafe" target="_blank">http://www.haskell.org/mailman/listinfo/haskell-cafe</a><br>
</div></div></blockquote></div><br></div></div>