Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/singpolyma/haskades
Autogenerate bindings for using Haskell with BB10
https://github.com/singpolyma/haskades
Last synced: about 1 month ago
JSON representation
Autogenerate bindings for using Haskell with BB10
- Host: GitHub
- URL: https://github.com/singpolyma/haskades
- Owner: singpolyma
- License: isc
- Created: 2012-11-25T23:01:23.000Z (about 12 years ago)
- Default Branch: master
- Last Pushed: 2015-07-04T21:30:49.000Z (over 9 years ago)
- Last Synced: 2024-05-01T22:08:14.641Z (8 months ago)
- Language: HTML
- Homepage: http://haskad.es/
- Size: 391 KB
- Stars: 4
- Watchers: 4
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README
- License: COPYING
Awesome Lists containing this project
README
Autogeneration of bindings for creating BlackBerry Cascades apps
with Haskell back ends.Run as:
> ./haskades HaskadesBinding.hs haskades_run.cpp haskades_run.h < Types.hs
Where Types.hs is a Haskell file containing a a sum type declaration
named 'SignalToUI' and another named 'SignalFromUI' which fully
specify the communication possible between the UI layer (which you
write in QML) and the Haskell 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.Text, Lazy Text, and String all end up as QString so that QML can
work with them properly, and vice-versa. UTCTime becomes QDateTime.
Int, Double, and () are passed through fairly directly. Other types
may have support added as there is need.A simple example lives at