16 Sep 00:09
ANNOUNCE: qtHaskell 1.1.2, the second preview version of qtHaskell
From: David Harley <dth.tss <at> gmail.com>
Subject: ANNOUNCE: qtHaskell 1.1.2, the second preview version of qtHaskell
Newsgroups: gmane.comp.lang.haskell.general
Date: 2008-09-15 22:11:40 GMT
Subject: ANNOUNCE: qtHaskell 1.1.2, the second preview version of qtHaskell
Newsgroups: gmane.comp.lang.haskell.general
Date: 2008-09-15 22:11:40 GMT
For all interested in Haskell GUIs, there is now a second preview release of qtHaskell - a set of Haskell bindings for Trolltech's Qt available at http://qthaskell.berlios.de There are a number of important changes from the previous version. 1. All FFI pointers are now Foreign Pointers. Those of a type derived from QObject are wrapped as QPointer types and only this wrapper is deleted when their finalizer runs. All other types are automatically deleted by their finalizer when they go out of Haskell scope - or more precisely when the finalizer acutally runs. To make the actual deletion time more easily controlable, most example code uses the function "returnGC" instead of just "return" in callback functions. Also non QObject derived types can be constructed with an alternative constructor qSomeObject_nf which has no finalizer. In this case it's the programmers job to delete the object when required. 2. All Qt enumerated types are implemented as equivalent Haskell types instead of just being of type Int as before. In fact I'v used separate types for enumerated types and their corresponding "flags" types in Qt. For example enum Qt::AlignmentFlag flags Qt::Alignment have equivalent qHaskell types: data CQt__AlignmentFlag a = CQt__AlignmentFlag a type Qt__AlignmentFlag = QEnum(CQt__AlignmentFlag Int)(Continue reading)
RSS Feed