[Haskell-iPhone] First patches for iPhone cross compiler against GHC head

Stephen Blackheath [to GHC-iPhone] likeliest.complexions.stephen at blacksapphire.com
Mon Mar 19 10:50:55 CET 2012


Here are some rough patches that create a GHC-iPhone cross-compiler when 
applied to an old GHC HEAD of 30 Jan 2012.


The "executable" this cross compiler outputs is really a static library 
which you need to link with your iPhone Xcode project. I haven't tried 
this yet, as I am remote from my Mac at present.

So it's basically done, but will need a bit of testing and refinement.


stephen-blackheaths-mac-mini:ghc2 blackh$ arm-apple-darwin10-ghc hello.hs
[1 of 1] Compiling Main             ( hello.hs, hello.o )
Linking ./hello.a ...
stephen-blackheaths-mac-mini:ghc2 blackh$ ls -l hello.a
-rw-r--r--  1 blackh  staff  3464 Mar 19 22:47 hello.a
stephen-blackheaths-mac-mini:ghc2 blackh$

More information about the iPhone mailing list