Re: [wxhaskell-users] How to resize a bitmap ?

2011-09-02 Thread Dave Tapley
On 1 September 2011 12:14, D.V. wrote: > Bonjour List, > > If there a way to draw a bitmap so it fits a specific size (rescaling > it if needed ?) > Erm, well it appears that imageScale is wrapped by wxcore (I'm not sure how familiar you are with wxHaskell?), so it *might* just work, see here: h

[wxhaskell-users] wxHaskell and forkIO or forkOS

2011-09-02 Thread D.V.
Bonjour List ! I am writing a program that is supposed to listen to a tcp port, and when a client connects, update a UI done with wxHaskell. Since wxHaskell is not compatible with multiple threads, I am not sure how to do this. an idea I have is to - forkOS a thread which will do the network pa

Re: [wxhaskell-users] wxHaskell and forkIO or forkOS

2011-09-02 Thread maciek . makowski
There is indeed a claim in wxHaskell FAQ that it is incompatible with Haskell threads. I have, however, used threads spawned with forkIO to update wxHaskell GUI in toy apps, without any ill effects. Examples: http://mmakowski.com/wiki/tech:haskell_mvc https://github.com/mmakowski/habaz I'd be int

Re: [wxhaskell-users] wxHaskell and forkIO or forkOS

2011-09-02 Thread Eric Y. Kow
On Fri, Sep 02, 2011 at 15:03:28 +0100, maciek.makow...@gmail.com wrote: > There is indeed a claim in wxHaskell FAQ that it is incompatible with > Haskell threads. I have, however, used threads spawned with forkIO to > update wxHaskell GUI in toy apps, without any ill effects. Examples: > > http:/

Re: [wxhaskell-users] wxHaskell and forkIO or forkOS

2011-09-02 Thread maciek . makowski
If the only restriction here is that all the GUI updates should happen on the main OS thread, doesn't it mean that Haskell (green) threads spawned through forkIO are fine, because they execute on the same OS thread? Or does wxHaskell introduce additional restrictions? Maciek On Fri, Sep 2, 2011 a

Re: [wxhaskell-users] wxHaskell and forkIO or forkOS

2011-09-02 Thread Eric Y. Kow
On Fri, Sep 02, 2011 at 15:55:07 +0100, maciek.makow...@gmail.com wrote: > If the only restriction here is that all the GUI updates should happen > on the main OS thread, doesn't it mean that Haskell (green) threads > spawned through forkIO are fine, because they execute on the same OS > thread? Or