Re: GUI Toolkit
Hi, Am Mittwoch, den 26.11.2014, 01:48 -0600 schrieb Christopher Reichert: I'll be looking into the haskell-devscripts issue over the next few days but wanted to get things moving in case anyone had any further suggestions. I'll check out using the find command first and hopefully have something for review soon. note that at this point, we should make changes to haskell-devscripts in unstable that are not targeted for jessie. The haskell-devscripts darcs repo already contains the changes to haskell-devscripts in experimental. This means that if you make a change to haskell-devscripts, make sure you use that version. It also means that you’ll be working with GHC 7.8 (which is good, we need to start getting that in shape). Greetings, Joachim -- Joachim nomeata Breitner Debian Developer nome...@debian.org | ICQ# 74513189 | GPG-Keyid: F0FBF51F JID: nome...@joachim-breitner.de | http://people.debian.org/~nomeata signature.asc Description: This is a digitally signed message part
Re: GUI Toolkit
On Sat, Nov 22 2014, Gard Spreemann g...@nonempty.org wrote: On Sat, Nov 22, 2014 at 01:40:15PM +0100, Joachim Breitner wrote: Am Samstag, den 22.11.2014, 13:19 +0100 schrieb Gard Spreemann: On Sat, Nov 22, 2014 at 12:54:43PM +0100, Joachim Breitner wrote: Am Samstag, den 22.11.2014, 12:49 +0100 schrieb Gard Spreemann: Not as far as I know :-( Here's a direct link: https://launchpad.net/~gspreemann/+archive/ubuntu/haskell/+files/haskell-hsqml_0.3.2.0-0ubuntu0gspr1.debian.tar.xz The patch is quite crude, but I didn't know how else to work around the problem. I don’t get the patch. All you are adding is a print statement, right? Yes. HsQML uses a custom Setup.hs, and hlibrary.mk from haskell-devscripts at several points does pkg_config=`$(DEB_SETUP_BIN_NAME) register --builddir=dist-ghc --gen-pkg-config | tr -d ' \n' | sed -r 's,^.*:,,'`; \ $(if $(HASKELL_HIDE_PACKAGES),sed -i 's/^exposed: True$$/exposed: False/' $$pkg_config;) \ install -Dm 644 $$pkg_config debian/$(notdir $@)/var/lib/ghc/package.conf.d/$$pkg_config; \ rm -f $$pkg_config (and variants) expecting to find a string like that in the patch (which a standard Setup.hs does output). I see; I didn’t remember that code. Maybe that approach is a bit too unreliable. Cant’t the file be found using find? If you feel like improving that code, I’ll happy review a patch! I won't have time until the holidays, but I can take a look then if nobody else has attacked it before. I went ahead and started trying to attack this: I've only created the repository, build, and managed to get the tests working. I've added your patches in their own commit with the link you shared. darcs.debian.org:/darcs/pkg-haskell/haskell-hsqml I'll be looking into the haskell-devscripts issue over the next few days but wanted to get things moving in case anyone had any further suggestions. I'll check out using the find command first and hopefully have something for review soon. Regards, -- Christopher Reichert irc: creichert gpg: C81D 18C8 862A 3618 1376 FFA5 6BFC A992 9955 929B signature.asc Description: PGP signature
Re: GUI Toolkit
On Sat, Nov 22, 2014 at 11:00:34AM +0100, Dirk Hünniger wrote: Hi, I am looking for a GUI Toolkit for Haskell, I would like to distribute my application on Debian and also publish it as a portable application on windows (that means it just runs as soon as you extracted the zip file into a folder and double click the exe). Currently I have my application written in Haskell and use Python 3 and QT 4 for the GUI and do the interfacing via the command line. This works quite well and fulfills the above requirements. Still I would prefer to do everything in Haskell only. I found that a Haskell gtk interface packaged with Debian. But as far as I could find out it is extremely difficult to write a portable application for windows with gtk. I didn't find bindings for QT in Debian. Hi, While not really a Haskell binding to Qt per se, HsQML [1,2] does offer a nice compromise until the time when such a thing is available. With HsQML, you write the GUI in QML [3] (a declarative language which is, from what I can tell, the preferred way of writing Qt applications these days anyway) but the application is Haskell-driven. It has some unpolished edges still, but I think it's worth considering, at least until someone comes up with a Qt-backed FRP GUI system (this seems a long way off). (I have HsQML packaged at [4], but I've only tested it with Ubuntu). -- Gard [1] https://hackage.haskell.org/package/hsqml [2] http://www.gekkou.co.uk/software/hsqml/ [3] http://qt-project.org/doc/qt-5/qmlapplications.html [4] https://launchpad.net/~gspreemann/+archive/ubuntu/haskell -- To UNSUBSCRIBE, email to debian-haskell-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: https://lists.debian.org/20141122104133.ga19...@nonempty.org
Re: GUI Toolkit
Hi, I already looked into into it. And for my current application its indeed ok. But I was also thinking of an application where the gui changes very dynamically, in particular triggered by network events. And in this case the only idea I could come up with was to generate the qml files dynamically and reload them quite often. Still this approach seemd very strange to me. Yours Dirk On 2014-11-22 11:41, Gard Spreemann wrote: On Sat, Nov 22, 2014 at 11:00:34AM +0100, Dirk Hünniger wrote: Hi, I am looking for a GUI Toolkit for Haskell, I would like to distribute my application on Debian and also publish it as a portable application on windows (that means it just runs as soon as you extracted the zip file into a folder and double click the exe). Currently I have my application written in Haskell and use Python 3 and QT 4 for the GUI and do the interfacing via the command line. This works quite well and fulfills the above requirements. Still I would prefer to do everything in Haskell only. I found that a Haskell gtk interface packaged with Debian. But as far as I could find out it is extremely difficult to write a portable application for windows with gtk. I didn't find bindings for QT in Debian. Hi, While not really a Haskell binding to Qt per se, HsQML [1,2] does offer a nice compromise until the time when such a thing is available. With HsQML, you write the GUI in QML [3] (a declarative language which is, from what I can tell, the preferred way of writing Qt applications these days anyway) but the application is Haskell-driven. It has some unpolished edges still, but I think it's worth considering, at least until someone comes up with a Qt-backed FRP GUI system (this seems a long way off). (I have HsQML packaged at [4], but I've only tested it with Ubuntu). -- Gard [1] https://hackage.haskell.org/package/hsqml [2] http://www.gekkou.co.uk/software/hsqml/ [3] http://qt-project.org/doc/qt-5/qmlapplications.html [4] https://launchpad.net/~gspreemann/+archive/ubuntu/haskell -- To UNSUBSCRIBE, email to debian-haskell-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: https://lists.debian.org/54706c8a.3080...@googlemail.com
Re: GUI Toolkit
Hi, Am Samstag, den 22.11.2014, 11:00 +0100 schrieb Dirk Hünniger: I didn't find bindings for QT in Debian. someone attempted to package haskell-qt for Debian, but that was stalled. It is partly tricky as the qt bindings are not a normal Cabal package. From a Distro point of view, HsQML looks much easier to get into Debian. Greetings, Joachim -- Joachim nomeata Breitner Debian Developer nome...@debian.org | ICQ# 74513189 | GPG-Keyid: F0FBF51F JID: nome...@joachim-breitner.de | http://people.debian.org/~nomeata signature.asc Description: This is a digitally signed message part
Re: GUI Toolkit
Hi, Am Samstag, den 22.11.2014, 12:34 +0100 schrieb Gard Spreemann: On Sat, Nov 22, 2014 at 12:13:14PM +0100, Joachim Breitner wrote: Am Samstag, den 22.11.2014, 11:00 +0100 schrieb Dirk Hünniger: I didn't find bindings for QT in Debian. someone attempted to package haskell-qt for Debian, but that was stalled. It is partly tricky as the qt bindings are not a normal Cabal package. From a Distro point of view, HsQML looks much easier to get into Debian. On a related note: I had to (very crudely) patch HsQML's Setup.hs to have it build with the Haskell cdbs stuff. If you or somebody else can help me, I'd be happy to try to get the packaged HsQML I have sitting in https://launchpad.net/~gspreemann/+archive/ubuntu/haskell into Debian. does launchpad support browsing the contents of the packaging or do I have to download the file first? Greetings, Joachim -- Joachim nomeata Breitner Debian Developer nome...@debian.org | ICQ# 74513189 | GPG-Keyid: F0FBF51F JID: nome...@joachim-breitner.de | http://people.debian.org/~nomeata signature.asc Description: This is a digitally signed message part
Re: GUI Toolkit
On Sat, Nov 22, 2014 at 12:45:29PM +0100, Joachim Breitner wrote: Hi, Am Samstag, den 22.11.2014, 12:34 +0100 schrieb Gard Spreemann: On Sat, Nov 22, 2014 at 12:13:14PM +0100, Joachim Breitner wrote: Am Samstag, den 22.11.2014, 11:00 +0100 schrieb Dirk Hünniger: I didn't find bindings for QT in Debian. someone attempted to package haskell-qt for Debian, but that was stalled. It is partly tricky as the qt bindings are not a normal Cabal package. From a Distro point of view, HsQML looks much easier to get into Debian. On a related note: I had to (very crudely) patch HsQML's Setup.hs to have it build with the Haskell cdbs stuff. If you or somebody else can help me, I'd be happy to try to get the packaged HsQML I have sitting in https://launchpad.net/~gspreemann/+archive/ubuntu/haskell into Debian. does launchpad support browsing the contents of the packaging or do I have to download the file first? Not as far as I know :-( Here's a direct link: https://launchpad.net/~gspreemann/+archive/ubuntu/haskell/+files/haskell-hsqml_0.3.2.0-0ubuntu0gspr1.debian.tar.xz The patch is quite crude, but I didn't know how else to work around the problem. -- Gard -- To UNSUBSCRIBE, email to debian-haskell-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: https://lists.debian.org/20141122114944.ga25...@nonempty.org
Re: GUI Toolkit
On Sat, Nov 22, 2014 at 12:54:43PM +0100, Joachim Breitner wrote: Hi, Am Samstag, den 22.11.2014, 12:49 +0100 schrieb Gard Spreemann: Not as far as I know :-( Here's a direct link: https://launchpad.net/~gspreemann/+archive/ubuntu/haskell/+files/haskell-hsqml_0.3.2.0-0ubuntu0gspr1.debian.tar.xz The patch is quite crude, but I didn't know how else to work around the problem. I don’t get the patch. All you are adding is a print statement, right? Yes. HsQML uses a custom Setup.hs, and hlibrary.mk from haskell-devscripts at several points does pkg_config=`$(DEB_SETUP_BIN_NAME) register --builddir=dist-ghc --gen-pkg-config | tr -d ' \n' | sed -r 's,^.*:,,'`; \ $(if $(HASKELL_HIDE_PACKAGES),sed -i 's/^exposed: True$$/exposed: False/' $$pkg_config;) \ install -Dm 644 $$pkg_config debian/$(notdir $@)/var/lib/ghc/package.conf.d/$$pkg_config; \ rm -f $$pkg_config (and variants) expecting to find a string like that in the patch (which a standard Setup.hs does output). -- To UNSUBSCRIBE, email to debian-haskell-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: https://lists.debian.org/20141122121911.ga27...@nonempty.org
Re: GUI Toolkit
On Sat, Nov 22 2014, Gard Spreemann g...@nonempty.org wrote: On Sat, Nov 22, 2014 at 01:40:15PM +0100, Joachim Breitner wrote: I won't have time until the holidays, but I can take a look then if nobody else has attacked it before. I use hsqml quite a bit myself so this is definitely a package I'd like to take a look at. Definitely keep us updated if you do move forward with packaging it in Debian but I certainly don't mind taking a crack at it, though I haven't quite grocked some of the issues you brought up. I recently talked to the HsQML author about debian package and he replied with the following: The only complication I can think of is that if the platform's GHC doesn't support Template Haskell then you need to use SetupNoTH.hs rather than Setup.hs. The latter has some TH-based compatibility shims for supporting older versions of Cabal. Cheers, -- Christopher Reichert irc: creichert gpg: C81D 18C8 862A 3618 1376 FFA5 6BFC A992 9955 929B signature.asc Description: PGP signature