mchakravarty/language-c-inline — pull request #8 by mchakravarty (2013-04-22 03:10:46+00:00)
Title: Support the definition of interfaces and class implementations

AppKit and UIKit make heavy use of subclassing and application-specific delegate objects. Hence, to use Cocoa (Touch) from Haskell, we need to be able to support that conveniently:
- [ ] Two new inline forms `objc_interface` and `objc_implementation`.
- [ ] Always generate a `.m` and a `.h`. Put all includes/imports into the `.h`.
- [ ] Generate prototypes for the C functions wrapping inline ObjC expressions.
- [ ] Generate `foreign export`s for access to top-level Haskell variables & functions in `objc_implementation`.
- [x] Add an app delegate to `HSApp`.
- [ ] Test with the app delegate in the `HSApp` example.