A small Haskell / Objective-C Interface Test Implementation
Haskell Objective-C C++
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
English.lproj
HSOBJC_Test.xcodeproj Switched SDK back to 10.5 (and removed Objective-C 2.0 features). Mar 3, 2010
.gitignore
Controller.hs
FFI.h Initial commit. Feb 18, 2010
HSOBJC.hs Another instance for the 3-tuple. Apr 6, 2010
HSOBJC_Test-Info.plist
HSOBJC_Test_AppDelegate.h
HSOBJC_Test_AppDelegate.m
HSOBJC_Test_Controller.h
HSOBJC_Test_Controller.m
HSOBJC_Test_Prefix.pch
HSOBJC_dummy_C.m
HSObjC_C.h
HSObjC_C.m
Main.hs
Model.hs Separated the Haskell part into 'Main.hs', 'Controller.hs', and 'Mode… Mar 2, 2010
README.markdown Fixed some errors in the README doc. Mar 29, 2010

README.markdown

A Cocoa Test Application with Haskell

This project contains a test Cocoa application to demonstrate the usage of the OBJC Haskell typeclass.

A typical OBJC Haskell/Cocoa application would consist of:

  • A GUI build with the "Interface Builder".

  • A small Objective-C proxy controller: This is mainly for exporting the IBOutlets to the Haskell controller and setting up the Haskell controller.

  • A Haskell controller: This will be stateless and is basically a classical MVC controller.

  • A Haskell model.

The OBJC typeclass

The typeclass deals with the conversion of Objective-C objects from/to Haskell values. For example there is an easy way to convert a NSArray to a Haskell list and vice versa.

Further reading

For more information please follow the links to my blog posts: