Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
A small Haskell / Objective-C Interface Test Implementation
Haskell Objective-C C++
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
English.lproj
HSOBJC_Test.xcodeproj
.gitignore
Controller.hs
FFI.h
HSOBJC.hs
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
README.markdown

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:

Something went wrong with that request. Please try again.