Gtk2Hs version 0.11.0 released
Dear all, the Gtk2Hs team is very happy to announce the release of version 0.11.0, the first release that comes in Cabal packages! Gtk2Hs is a collection of wrappers around the Gtk+ graphical user interface suite. However, it is more than just user interfaces! Using a subset of packages, you can also render high quality graphics and text to PDF, PS, PNG and SVG documents. Gtk2Hs consists of code that is partly generated but always adjusted by hand afterwards, especially the documentation. One of our aims it to make the Haskell interface self-contained and Haskell-lish. For example, memory management is fully automatic (of course!) and the store of widgets displaying tables or lists is a Haskell data structure. We have invested a great deal to make Gtk2Hs work in multi- threaded programs which was challenging given the concurrent garbage collector of GHC. Due to this effort, Gtk2Hs works from within GHCi and, of course, it works on Windows. This release has been tested on Linux, Mac OS X and Windows (XP/7). It can be built with GHC 6.10 and 6.12 and Cabal 1.6 and 1.8. However, since it's our first Cabal release, there might be rough edges, so any feedback is appreciated. The use of Cabal means that Gtk2Hs is now split into the following packages: • gtk2hs-buildtools: build tools, required to build from source • glib: object type system and data structures • gio: an OS-agnostic file access API • cairo: a 2D vector graphics library • pango: a Unicode-aware font rendering engine • gtk: the base GUI library • gconf: configuration database • glade: a library to build user interfaces from XML descriptions • gnomevfs: an OS-agnostic file access API (deprecated) • gstreamer: a multimedia streaming framework • gtkglext: an OpenGL widget • gtksourceview2: a source-code widget • soegtk: an API providing functions for Paul Hudak’s Haskell School of Expressions book • svgcairo: writing Cairo graphics to SVG files • vte: a terminal widget • webkit: a web-browser widget, based on Apple’s webkit library The aim is to concentrate future development on the core packages (i.e. the first six packages from the list above) and encourage external contributions to the remaining packages by putting them into their own repositories and granting write access to people. Through this process we hope to encourage external contributions and to accelerate the development of the core libraries. To install from sources, see: http://haskell.org/gtk2hs/download/ Documentation can be found here: http://haskell.org/gtk2hs/documentation/ Many thanks to all the external contributors that helped us prepare the release! Happy GUIing, Axel (on behalf of the Gtk2Hs team)
Hello Axel, Tuesday, May 25, 2010, 4:02:21 PM, you wrote:
the Gtk2Hs team is very happy to announce the release of version 0.11.0, the first release that comes in Cabal packages!
can be built with GHC 6.10 and 6.12 and Cabal 1.6 and 1.8. However,
does it mean that i can just issue "cabal install gtk" with any 6.10.* or 6.12.* version and it will be compiled automatically? overall, can you please give us details what Cabal support gives to us developers who uses gtk2hs? -- Best regards, Bulat mailto:Bulat.Ziganshin@gmail.com
Hi Bulat, On 27.05.2010, at 19:14, Bulat Ziganshin wrote:
Hello Axel,
Tuesday, May 25, 2010, 4:02:21 PM, you wrote:
the Gtk2Hs team is very happy to announce the release of version 0.11.0, the first release that comes in Cabal packages!
can be built with GHC 6.10 and 6.12 and Cabal 1.6 and 1.8. However,
does it mean that i can just issue "cabal install gtk" with any 6.10.* or 6.12.* version and it will be compiled automatically? overall, can you please give us details what Cabal support gives to us developers who uses gtk2hs?
In order to install Gtk2Hs, one has to indeed say cabal install gtk2hs-buildtools cabal install gtk (assuming that ~/.cabal/bin is on your PATH). I has been suggested to us that gtk2hs-buildtools should install a fake library, so that gtk can depend on it and have the build tools installed as a side-effect. About the benefits to the developers, I guess there are the obvious: - an application x that depends on gtk can be compiled by saying 'cabal install x' (but see above) - no more fiddling with ./configure in MinGW on Windows - faster compilation time Maybe I'm missing the point of your question, though. Cheers, Axel.
Hello Axel, Thursday, May 27, 2010, 9:50:57 PM, you wrote:
does it mean that i can just issue "cabal install gtk" with any 6.10.* or 6.12.* version and it will be compiled automatically? overall, can
Maybe I'm missing the point of your question, though.
for example, i can't use previous gtk2hs version with ghc 6.10.4 on windows because there is no prebuilt library and i'm not brave enough to compile it myself. is it true that gtk2hs 0.11 should automatically compile with any ghc 6.10/6.12 on windows and we no more need prebuilt installers? -- Best regards, Bulat mailto:Bulat.Ziganshin@gmail.com
Hi Bulat, On 27.05.2010, at 20:04, Bulat Ziganshin wrote:
Hello Axel,
Thursday, May 27, 2010, 9:50:57 PM, you wrote:
does it mean that i can just issue "cabal install gtk" with any 6.10.* or 6.12.* version and it will be compiled automatically? overall, can
Maybe I'm missing the point of your question, though.
for example, i can't use previous gtk2hs version with ghc 6.10.4 on windows because there is no prebuilt library and i'm not brave enough to compile it myself. is it true that gtk2hs 0.11 should automatically compile with any ghc 6.10/6.12 on windows and we no more need prebuilt installers?
Yes, but you do need to install the bundle of Gtk+ libraries. I think compiling Gtk2Hs on Windows is not doable for the average developer which is a big step forwards as to where we were before. See: http://code.haskell.org/gtk2hs/INSTALL Cheers, Axel
Hello Axel, Thursday, May 27, 2010, 10:13:45 PM, you wrote:
thank you. and what if i deploy my gtk2hs application via hackage? is it enough for user to run "cabal install myapp" to install my app and all runtime gtk/gtk2hs libraries she need to run it? -- Best regards, Bulat mailto:Bulat.Ziganshin@gmail.com
Hi Bulat, On 27.05.2010, at 20:21, Bulat Ziganshin wrote:
Hello Axel,
Thursday, May 27, 2010, 10:13:45 PM, you wrote:
thank you. and what if i deploy my gtk2hs application via hackage? is it enough for user to run "cabal install myapp" to install my app and all runtime gtk/gtk2hs libraries she need to run it?
Once we manage to install the gtk2hs-buildtools package automatically, yes. See my previous message. Cheers, Axel
bulat.ziganshin:
Hello Axel,
Thursday, May 27, 2010, 10:13:45 PM, you wrote:
thank you. and what if i deploy my gtk2hs application via hackage? is it enough for user to run "cabal install myapp" to install my app and all runtime gtk/gtk2hs libraries she need to run it?
Yep, assuming though that the C libraries are installed. cabal can't install libgtk+ (the C library)
Bulat Ziganshin <bulat.ziganshin@gmail.com> writes:
Hello Axel,
Thursday, May 27, 2010, 10:13:45 PM, you wrote:
thank you. and what if i deploy my gtk2hs application via hackage? is it enough for user to run "cabal install myapp" to install my app and all runtime gtk/gtk2hs libraries she need to run it?
They would need to install gtk2hs-buildtools and alex themselves to be able to build gtk and associated libraries, as well as have the appropriate C header files from gtk+ installed. -- Ivan Lazar Miljenovic Ivan.Miljenovic@gmail.com IvanMiljenovic.wordpress.com
Ups, some chronological hick-up here. But I think your question is answered now :-) Note: On 27.05.2010, at 20:13, Axel Simon wrote:
for example, i can't use previous gtk2hs version with ghc 6.10.4 on windows because there is no prebuilt library and i'm not brave enough to compile it myself. is it true that gtk2hs 0.11 should automatically compile with any ghc 6.10/6.12 on windows and we no more need prebuilt installers?
Yes, but you do need to install the bundle of Gtk+ libraries. I think compiling Gtk2Hs on Windows is not doable for the average developer which is a big step forwards as to where we were before.
It's supposed to be "is now doable". Axel
Bulat Ziganshin <bulat.ziganshin@gmail.com> writes:
Hello Axel,
Thursday, May 27, 2010, 9:50:57 PM, you wrote:
does it mean that i can just issue "cabal install gtk" with any 6.10.* or 6.12.* version and it will be compiled automatically? overall, can
Maybe I'm missing the point of your question, though.
for example, i can't use previous gtk2hs version with ghc 6.10.4 on windows because there is no prebuilt library and i'm not brave enough to compile it myself. is it true that gtk2hs 0.11 should automatically compile with any ghc 6.10/6.12 on windows and we no more need prebuilt installers?
Well, you still need the C library and headers installed... -- Ivan Lazar Miljenovic Ivan.Miljenovic@gmail.com IvanMiljenovic.wordpress.com
for example, i can't use previous gtk2hs version with ghc 6.10.4 on windows because there is no prebuilt library and i'm not brave enough to compile it myself. is it true that gtk2hs 0.11 should automatically compile with any ghc 6.10/6.12 on windows and we no more need prebuilt installers?
Yes indeed, that is the intention. (Although you will need to obtain a distribution of the gtk+ C libs before you install the Haskell bindings now, where previously these were included in the pre-built installer.) Regards, Malcolm
bulat.ziganshin:
Hello Axel,
Tuesday, May 25, 2010, 4:02:21 PM, you wrote:
the Gtk2Hs team is very happy to announce the release of version 0.11.0, the first release that comes in Cabal packages!
can be built with GHC 6.10 and 6.12 and Cabal 1.6 and 1.8. However,
does it mean that i can just issue "cabal install gtk" with any 6.10.* or 6.12.* version and it will be compiled automatically? overall, can you please give us details what Cabal support gives to us developers who uses gtk2hs?
Yes, exactly. That's what it does.
participants (5)
-
Axel Simon -
Bulat Ziganshin -
Don Stewart -
Ivan Lazar Miljenovic -
Malcolm Wallace