Hi,
I am just starting to learn about the FFI and trying to use Haskell on the iPhone.
I wonder that in the example of the tutorial at
https://github.com/ghc-ios/ghc/wiki
the Cocoa runtime is simply invoked by calling the cmain method. Is it somehow bound on to the thread it is started on? If not, shouldn't it be (for example by invoking runInBoundThread) because of thread local state of the Cocoa runtime?
By the way, the app crashed, when trying so.
Another thing I am wondering about is that I don't see where the wrapper mkBack is defined. I also wouldn't know how to define it. I will continue reading about FFI then things will probably clear up.
Hopefully my questions are not too stupid.
Best regards
Nikolas
--
You received this message because you are subscribed to the Google Groups "iPhone Software Business" group.
To post to this group, send email to iphonesb@googlegroups.com.
To unsubscribe from this group, send email to iphonesb+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/iphonesb?hl=en.