Haskades lets you write apps for the BlackBerry 10 platform with sweet Cascades-powered QML UIs, without needing to delve into C++. Back-end code is written using the high-level Haskell language. The only C++ is autogenerated.
./haskades HaskadesBinding.hs haskades_run.cpp haskades_run.h < Types.hs
Types.hs is a Haskell source file containing a sum type declaration named
SignalToUI and another named
SignalFromUI which fully specify the communication possible between the UI and the backend. QML code can access these signals on the
app context object. Haskell code can emit signals by using the
emit function exported from the generated HaskadesBinding. The
emit call is threadsafe.
To make effective use of Haskades, you will need to build a qnxnto-arm cross-compiler built from GHC HEAD.
Install the tool from Hackage:
$ cabal install haskades
Or build it from source (requires mustache2hs):
$ make && make install
This platform is still early, so let us know how it works for you.
- Please report issues on Github.