[Haskell-cafe] Re: Hugs on the iphone

Alberto R. Galdo argaldo.haskell at gmail.com
Sun Sep 14 11:17:45 EDT 2008


Seems that someone in this list got hugs working on the iPhone...
http://www.nabble.com/Re%3A-xmonad-on-the-openmoko-mobile-phone-p18914746.html

Miguel, are you out there?


On Sun, Sep 14, 2008 at 4:56 PM, Braden Shepherdson <
Braden.Shepherdson at gmail.com> wrote:

> 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?
>>>
>>> Greets,
>>> Alberto
>>>
>>
>> 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[1], an attempt to port GHC to ARM Linux
>> devices.
>>
>>
>> Braden Shepherdson
>> shepheb
>>
>> [1] http://hackage.haskell.org/trac/ghc/wiki/ArmLinuxGhc
>>
>
>
> 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
> shepheb
>
>
> _______________________________________________
> Haskell-Cafe mailing list
> Haskell-Cafe at haskell.org
> http://www.haskell.org/mailman/listinfo/haskell-cafe
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.haskell.org/pipermail/haskell-cafe/attachments/20080914/c72f4fa0/attachment.htm


More information about the Haskell-Cafe mailing list