<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br><div><div>Op 28 dec 2011, om 16:04 heeft David Pollak het volgende geschreven:</div><br class="Apple-interchange-newline"><blockquote type="cite">These are two examples of running iPad apps. &nbsp;iPhone and iPad apps do not differ in terms of any generated machine code, but only in some xcode stuff.</blockquote>There is a SplitViewController that is only available on the iPad, so a direct port is not possible. I need to become more clever than I am at the moment<br><blockquote type="cite"><div><br></div><div>The GHC-iPhone PDF document has a walk-through of creating a new xcode project that includes the GHC-iPhone code. &nbsp;Please walk through those steps (I walked through them for both the Lisp thing and the Visi thing), but with a base iPhone xcode template rather than a base iPad xcode template and you'll get a running project.<br></div></blockquote>Yes, it took some time, other things on my mind.</div><div>I made a simple Hello Fibonacci app. I only had problems with the Haskell binary stuff. You need to have a cabal and Main.hs file before you can compile and the given env variable is wrong. It should be:&nbsp;$CONFIGURATION_BUILD_DIR/dist/build/&lt;project&gt;</div><div>Then I can compile for all targets.</div><div>After a lot of strange errors I noticed that Haskell main is not the starting point but you have to adjust main.m to get things working.</div><div>From your examples I saw you use the ViewController in Haskell. I omitted that. I made a C interface and that was sufficient for this simple case.</div><div>It touches the interesting point of what you do in Haskell and what in Objective C. I saw there is a FFI in development for Obj C. That should make things easier I hope.</div><div>If `the other things are off my mind' I'll try to add the scheme interpreter and then find some task I can't live without running it in Haskell in my iPhone</div><div><br></div><div>thanks,</div><div>Ton<br><blockquote type="cite"><div>
<br><div class="gmail_quote">On Wed, Dec 28, 2011 at 6:35 AM, Ton Biegstraaten <span dir="ltr">&lt;<a href="mailto:ton.biegstraaten@gmail.com">ton.biegstraaten@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 style="word-wrap:break-word"><br><div><div class="im"><blockquote type="cite"><div class="gmail_quote"><div><br></div><div>Yes. &nbsp;The qcon_demo tag is the demarcation of where the code properly compiled for the iPad.</div>

<div><br></div><div>Then I went and did a bunch of stuff that requires GHC 7 and also splits the language out from the iPad part because Visi will run on OS X and in the cloud as well as on the iPad.</div><div><br></div>
<div>
You might want to check out <a href="https://github.com/dpp/LispHaskellIPad" target="_blank">https://github.com/dpp/LispHaskellIPad</a></div></div></blockquote><br></div>I wonder if the app is specific iPad. I like to make an iPhone app, the screen is of course too small, but as a test it might be fine.</div>
<div>I don't have access to an iPad.</div><span class="HOEnZb"><font color="#888888"><div><br></div><div>Ton</div></font></span><div class="im"><div><br><blockquote type="cite"><div class="gmail_quote"></div><br><br clear="all">
<div><br></div>-- <br><div>Visi.Pro, Cloud Computing for the Rest of Us <a href="http://visi.pro/" target="_blank">http://visi.pro</a></div>
Lift, the simply functional web framework <a href="http://liftweb.net/" target="_blank">http://liftweb.net</a><div>Follow me: <a href="http://twitter.com/dpp" target="_blank">http://twitter.com/dpp</a><br>Blog: <a href="http://goodstuff.im/" target="_blank">http://goodstuff.im</a><br>

</div><div><br></div><br>
</blockquote></div><br></div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div>Visi.Pro, Cloud Computing for the Rest of Us <a href="http://visi.pro/" target="_blank">http://visi.pro</a></div>Lift, the simply functional web framework <a href="http://liftweb.net/" target="_blank">http://liftweb.net</a><div>
Follow me: <a href="http://twitter.com/dpp" target="_blank">http://twitter.com/dpp</a><br>Blog: <a href="http://goodstuff.im/" target="_blank">http://goodstuff.im</a><br></div><div><br></div><br>
</div>
</blockquote></div><br></body></html>