<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;"><br><br>--- On <b>Sat, 12/5/09, Andrew Coppin <i>&lt;andrewcoppin@btinternet.com&gt;</i></b> wrote:<br><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;">&gt;&gt; Hell, I even followed a C++ guide to Win32 programming and<br><div class="plainMail">&gt;&gt; managed to translate an "open a blank window" program to Haskell, and it<br>&gt;&gt; worked. Maybe somebody just needs to sit down and write a nice binding<br>&gt;&gt; for doing native GUI stuff under Win32?<br><br></div></blockquote>Well there's http://haskell.org/ghc/docs/latest/html/libraries/Win32/Graphics-Win32.html for opening blank windows. ;)<br><br>This relates to my question a couple days ago about a good cross platform 2d library. I wonder why there isnt a Haskell library that follows in the footsteps of Java's Swing - by that I mean, just have a very
 simple low level way of opening a window, getting mouse clicks, and an abstracted drawing layer... and make the GUIs with that. The GUIs are drawn and not OS widgets. That's exactly why I was looking for something like Cairo. My interest is in composable fudgets (stealing the word from fudgets). <br><br>This way every platform can share the same GUI library and HP can ship with the minimal tools to open a window and draw on every system. Plus OS guis are the wrong thing for Haskell. You need to retain the power to make better abstractions.<br><br><div class="plainMail"><br></div></td></tr></table><br>