Re: [Haskell-cafe] Level of Win32 GUI support in the Haskell platform

2011-12-30 Thread Ivan Perez
I'm using Gtk2hs in windows (and linux) with no big problems. Cairo also works.
Glade does not allow me to use accents in the user interfaces on windows, but
otherwise works ok.

I haven't tried wx on windows. It works on linux and it provides a
more natural interface
(gtk will look like gtk also in windows). I found wx a bit limited (I
couldn't dock my app into
the traybar), but it was enough to write a sudoku UI.

I'm releasing apps using gtk2hs on windows and my clients haven't complained so
far. You'll need to strip your apps if you are planning to distribute
them, otherwise you'll
carry more than 15MB with every executable.

Cheers,
Ivan.

On 30 December 2011 05:49, Mikhail Glushenkov
the.dead.shall.r...@gmail.com wrote:
 Hi,

 Steve Horne sh006d3592 at blueyonder.co.uk writes:


 I've been for functions like GetMessage, TranslateMessage and
 DispatchMessage in the Haskell Platform Win32 library - the usual
 message loop stuff - and not finding them. Hoogle says no results found.

 Haskell Platform includes the Win32 package which provides access to these
 functions. Hoogle doesn't index Windows-only packages, unfortunately.


 ___
 Haskell-Cafe mailing list
 Haskell-Cafe@haskell.org
 http://www.haskell.org/mailman/listinfo/haskell-cafe

___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


[Haskell-cafe] Level of Win32 GUI support in the Haskell platform

2011-12-29 Thread Steve Horne
I've been for functions like GetMessage, TranslateMessage and 
DispatchMessage in the Haskell Platform Win32 library - the usual 
message loop stuff - and not finding them. Hoogle says no results found.


Is this level of Win32 GUI coding supported? (other than by dealing with 
the FFI myself)


Alternatively, should I be doing dialog-based coding and leaving Haskell 
to worry about message loops behind the scenes?


Either way, is there an example I can use for reference? I have 
something along the lines of Petzolds Hello World in mind as the ideal 
(register a window class, handle the messages, paint some text), but 
anything that shows how to get a basic Win32 GUI app running in Haskell 
is fine.



___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


Re: [Haskell-cafe] Level of Win32 GUI support in the Haskell platform

2011-12-29 Thread Chris Wong
On Fri, Dec 30, 2011 at 2:53 PM, Steve Horne
sh006d3...@blueyonder.co.uk wrote:
 I've been for functions like GetMessage, TranslateMessage and
 DispatchMessage in the Haskell Platform Win32 library - the usual message
 loop stuff - and not finding them. Hoogle says no results found.

 Is this level of Win32 GUI coding supported? (other than by dealing with the
 FFI myself)

I'd recommend using Gtk2hs (http://haskell.org/gtk2hs). It's well
supported and your program will work on Mac  Linux  BSD to boot.

Trying to grapple with Win32 APIs isn't exactly my idea of fun. :)

 ___
 Haskell-Cafe mailing list
 Haskell-Cafe@haskell.org
 http://www.haskell.org/mailman/listinfo/haskell-cafe

___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


Re: [Haskell-cafe] Level of Win32 GUI support in the Haskell platform

2011-12-29 Thread Chris Smith
On Fri, 2011-12-30 at 01:53 +, Steve Horne wrote:
 I've been for functions like GetMessage, TranslateMessage and 
 DispatchMessage in the Haskell Platform Win32 library - the usual 
 message loop stuff - and not finding them. Hoogle says no results found.

I see them in the Win32 package.

http://hackage.haskell.org/packages/archive/Win32/2.2.1.0/doc/html/Graphics-Win32-Window.html#v:getMessage

 Alternatively, should I be doing dialog-based coding and leaving Haskell 
 to worry about message loops behind the scenes?

Various people recommend the gtk (aka Gtk2Hs) and wx packages for that.
I've never been able to get wx to build, but gtk works fine.  Others
(mostly those using macs) report the opposite.

-- 
Chris Smith


___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


Re: [Haskell-cafe] Level of Win32 GUI support in the Haskell platform

2011-12-29 Thread Steve Horne

On 30/12/2011 03:43, Chris Wong wrote:

On Fri, Dec 30, 2011 at 2:53 PM, Steve Horne
sh006d3...@blueyonder.co.uk  wrote:

I've been for functions like GetMessage, TranslateMessage and
DispatchMessage in the Haskell Platform Win32 library - the usual message
loop stuff - and not finding them. Hoogle says no results found.

Is this level of Win32 GUI coding supported? (other than by dealing with the
FFI myself)

I'd recommend using Gtk2hs (http://haskell.org/gtk2hs). It's well
supported and your program will work on Mac  Linux  BSD to boot.

Trying to grapple with Win32 APIs isn't exactly my idea of fun. :)


I had dismissed GTK  - I assumed getting it set up in Windows would be a 
bit painful, and figured I'd stick with whats in the Haskell Platform 
for the moment. I'm already familiar (though very rusty) with Win32 from 
C - it seemed like an easy if limited option.


But I'll take a look at gtk2hs anyway.

Thanks.


___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


Re: [Haskell-cafe] Level of Win32 GUI support in the Haskell platform

2011-12-29 Thread Steve Horne

On 30/12/2011 04:07, Chris Smith wrote:

On Fri, 2011-12-30 at 01:53 +, Steve Horne wrote:

I've been for functions like GetMessage, TranslateMessage and
DispatchMessage in the Haskell Platform Win32 library - the usual
message loop stuff - and not finding them. Hoogle says no results found.

I see them in the Win32 package.

http://hackage.haskell.org/packages/archive/Win32/2.2.1.0/doc/html/Graphics-Win32-Window.html#v:getMessage
Ah - I didn't look in Graphics.Win32.Window because those functions 
don't relate to Windows. Clearly I gave up my search too easily - thanks.



___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


Re: [Haskell-cafe] Level of Win32 GUI support in the Haskell platform

2011-12-29 Thread Mikhail Glushenkov
Hi,

Steve Horne sh006d3592 at blueyonder.co.uk writes:

 
 I've been for functions like GetMessage, TranslateMessage and 
 DispatchMessage in the Haskell Platform Win32 library - the usual 
 message loop stuff - and not finding them. Hoogle says no results found.

Haskell Platform includes the Win32 package which provides access to these
functions. Hoogle doesn't index Windows-only packages, unfortunately.


___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe