Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Using QTQuick with haskell

Tags:

haskell

qt

It looks to me that qthaskell is not being actively developed/ is abandoned.

Does it support QtQuick ?

Are there plans / any development in supporting qt 5 ?

Does anyone uses qt with haskell at all, or is gtk2hs the current favorite ?

like image 919
Vagif Verdi Avatar asked Apr 30 '12 21:04

Vagif Verdi


1 Answers

QtHaskell supports Qt 4.6 and thus QtQuick, at least the early lighthouse build version. Note that this version of QtQuick is completely different from the current QtQuick version; most elements and properties have completely different names.

GTK support for Haskell is being actively maintained. As you have seen for yourself, the same cannot be said about Qt. One of the main reasons is that GHC cannot import foreign C++ code by itself; you need to generate wrapper C code that is then called by GHC, and there isn't a general method for wrapping C++ code as C, so a new tool has to be developed for C++ in this case. So, the "current favorites" for GUI libraries in Haskell are GTK and WxWidgets.

It would be very interesting to use Qt in Haskell, for example because the Qt sockets system could be used to link into FRP (functional reactive programming) libraries, and because Qt has an interface that is very referentially transparent and that supports immutable data structures.

like image 162
dflemstr Avatar answered Sep 23 '22 06:09

dflemstr