
Is there any really cross-platform GUI library for Haskell? Gtk2Hs is good (I suppose), but it requires X. OK, I have X, but it's not "native" on my Mac; some Mac users don't install it and almost all Mac users don't always run it. I was able to install wxHaskell (after some hacking - this was really painful); and Blobs editor compiled successfully, but then resisted to run. Tk-based libraries seem to be good, and Tk can be run "natively" on Mac (i.e., without X), but none of them seem to compile. Sorry if this message seems like I'm angry; I am, but that's only for a moment.

Hi
Is there any really cross-platform GUI library for Haskell?
Gtk2Hs is good (I suppose), but it requires X. OK, I have X, but it's not "native" on my Mac; some Mac users don't install it and almost all Mac users don't always run it.
On Windows, Gtk2hs is not as native as wxHaskell, but is the best GUI toolkit available. On Windows, there is no requirement to have X installed. The Gtk2hs developers (or more specifically Duncan) have shown a continuing desire to make Gtk2hs more Windows friendly, even to the point of filing Gtk bugs and tracking their progress. I'm sure having made Mac friendly noises, they will come rushing to your aid :-) Thanks Neil

On Dec 12, 2007, at 14:47 , Neil Mitchell wrote:
Hi
Is there any really cross-platform GUI library for Haskell?
Gtk2Hs is good (I suppose), but it requires X. OK, I have X, but it's not "native" on my Mac; some Mac users don't install it and almost all Mac users don't always run it.
On Windows, Gtk2hs is not as native as wxHaskell, but is the best GUI toolkit available. On Windows, there is no requirement to have X installed. The Gtk2hs developers (or more specifically Duncan) have shown a continuing desire to make Gtk2hs more Windows friendly, even to the point of filing Gtk bugs and tracking their progress. I'm sure having made Mac friendly noises, they will come rushing to your aid :-)
A quick google reveals two different attempts to make a native OSX Gtk + port; one appears moribund and the other vapor. :( -- brandon s. allbery [solaris,freebsd,perl,pugs,haskell] allbery@kf8nh.com system administrator [openafs,heimdal,too many hats] allbery@ece.cmu.edu electrical and computer engineering, carnegie mellon university KF8NH

I prefer the elegant high-level style of wxhaskell over the current state of
gtk2hs. duncan has said he's interested in making a gtk2hs more elegant,
and daan has said he'll start supporting wxhaskell again. i don't know
which will happen first. - Conal
On Dec 12, 2007 11:47 AM, Neil Mitchell
Hi
Is there any really cross-platform GUI library for Haskell?
Gtk2Hs is good (I suppose), but it requires X. OK, I have X, but it's not "native" on my Mac; some Mac users don't install it and almost all Mac users don't always run it.
On Windows, Gtk2hs is not as native as wxHaskell, but is the best GUI toolkit available. On Windows, there is no requirement to have X installed. The Gtk2hs developers (or more specifically Duncan) have shown a continuing desire to make Gtk2hs more Windows friendly, even to the point of filing Gtk bugs and tracking their progress. I'm sure having made Mac friendly noises, they will come rushing to your aid :-)
Thanks
Neil _______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

On Dec 12, 2007 5:40 PM, Miguel Mitrofanov
Gtk2Hs is good (I suppose), but it requires X. OK, I have X, but it's not "native" on my Mac; some Mac users don't install it and almost all Mac users don't always run it.
Gtk is going native on Mac: http://developer.imendio.com/projects/gtk-macosx . The Gtk# guys are starting to try it now, and they're using a reasonably big software as test case: http://tirania.org/blog/archive/2007/Dec-02-2.html . So I guess going with Gtk2Hs isn't a bad path. Well, I confess I don't have a Mac, but it looks like things are getting better =). HTH, -- Felipe.

On Dec 12, 2007, at 14:51 , Felipe Lessa wrote:
On Dec 12, 2007 5:40 PM, Miguel Mitrofanov
wrote: Gtk2Hs is good (I suppose), but it requires X. OK, I have X, but it's not "native" on my Mac; some Mac users don't install it and almost all Mac users don't always run it.
Gtk is going native on Mac: http://developer.imendio.com/projects/ gtk-macosx .
Huh. I found the sourceforge project, which seems to have died in 2003; this looks a bit more hopeful. -- brandon s. allbery [solaris,freebsd,perl,pugs,haskell] allbery@kf8nh.com system administrator [openafs,heimdal,too many hats] allbery@ece.cmu.edu electrical and computer engineering, carnegie mellon university KF8NH

Am Mittwoch, 12. Dezember 2007 schrieb Miguel Mitrofanov:
Gtk2Hs is good (I suppose), but it requires X. OK, I have X, but it's not "native" on my Mac; some Mac users don't install it and almost all Mac users don't always run it.
the problem is Apple. if you want to have a native gui on OSX then you are either nearly stuck to Objective-C or to obsolete gui libraries. i'm not a mac user, but i know one who is; he told me. on osx there are two main gui apis: carbon and cocoa. carbon is obsolete, but it partially runs on osx -- it is not 64bit compatible. http://en.wikipedia.org/wiki/Carbon_%28API%29 cocoa is the newer one, which every mac user likes. AFAIK there is no C backend to that api, so you will have to develop a C backend first and then the haskell (or gtk2) wrapper. there are some bindings for other languages, i.e. C#, but no C. http://en.wikipedia.org/wiki/Carbon_%28API%29 if you are able to code objective-c and know how to access cocoa using c, please help those gtk developers to port gtk2 to native OSX. it will then automagically work with gtk2hs. - marc

I've seen an Objective C binding for Haskell; haven't used it yet. 13.12.2007, в 2:58, Marc A. Ziegert писал(а):
Am Mittwoch, 12. Dezember 2007 schrieb Miguel Mitrofanov:
Gtk2Hs is good (I suppose), but it requires X. OK, I have X, but it's not "native" on my Mac; some Mac users don't install it and almost all Mac users don't always run it.
the problem is Apple. if you want to have a native gui on OSX then you are either nearly stuck to Objective-C or to obsolete gui libraries. i'm not a mac user, but i know one who is; he told me. on osx there are two main gui apis: carbon and cocoa.
carbon is obsolete, but it partially runs on osx -- it is not 64bit compatible. http://en.wikipedia.org/wiki/Carbon_%28API%29
cocoa is the newer one, which every mac user likes. AFAIK there is no C backend to that api, so you will have to develop a C backend first and then the haskell (or gtk2) wrapper. there are some bindings for other languages, i.e. C#, but no C. http://en.wikipedia.org/wiki/Carbon_%28API%29
if you are able to code objective-c and know how to access cocoa using c, please help those gtk developers to port gtk2 to native OSX. it will then automagically work with gtk2hs.
- marc _______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

I have just successfully built Gtk2Hs against the native Mac OS X port of Gtk at: http://developer.imendio.com/projects/gtk-macosx This implies we can now use Gtk2Hs on the Mac without X11. The sample apps still look rather alien compared to normal Mac apps, but they are a big improvement over the X11 version. Regards, Neil On 12 Dec 2007, at 19:40, Miguel Mitrofanov wrote:
Is there any really cross-platform GUI library for Haskell?
Gtk2Hs is good (I suppose), but it requires X. OK, I have X, but it's not "native" on my Mac; some Mac users don't install it and almost all Mac users don't always run it.
I was able to install wxHaskell (after some hacking - this was really painful); and Blobs editor compiled successfully, but then resisted to run.
Tk-based libraries seem to be good, and Tk can be run "natively" on Mac (i.e., without X), but none of them seem to compile.
Sorry if this message seems like I'm angry; I am, but that's only for a moment. _______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
participants (7)
-
Brandon S. Allbery KF8NH
-
Conal Elliott
-
Felipe Lessa
-
Marc A. Ziegert
-
Miguel Mitrofanov
-
Neil Bartlett
-
Neil Mitchell