WxHaskell problems was Re: [Haskell-beginners] How to model this in haskell, get rid of my OO thinking?

For me on ubuntu karmic and haskell platform 2010.1, WxWidgets doesn't
seem to be responding to keypresses. I have only tried it with
WxAsteroids as I thought it would be useful for me to study. Does
anyone else have the same problem?
Cheers,
James
On 19 May 2010 09:02, Henk-Jan van Tuyl
On Tue, 18 May 2010 05:21:38 +0200,
wrote: Hi,
I learning haskell and I am trying to understand how model certain things in it. As I have been doing a lot of C++ programming so far. Let's imagine we want to write a game. In the game there are spaceships and rocks (image something like astroids :) ). Now both spaceships and rocks have a position and can move. Spaceships can shoot, while rocks can explode.
There is a well documented implementation, called wxAsteroids; see http://www.haskell.org/haskellwiki/WxAsteroids
Regards, Henk-Jan van Tuyl
-- http://Van.Tuyl.eu/ http://members.chello.nl/hjgtuyl/tourdemonad.html -- _______________________________________________ Beginners mailing list Beginners@haskell.org http://www.haskell.org/mailman/listinfo/beginners

For me on ubuntu karmic and haskell platform 2010.1, WxWidgets doesn't seem to be responding to keypresses. I have only tried it with WxAsteroids as I thought it would be useful for me to study. Does anyone else have the same problem? Cheers, James
On 19 May 2010 09:02, Henk-Jan van Tuyl
wrote: On Tue, 18 May 2010 05:21:38 +0200,
wrote: Yes, same problem here. Gentoo, installed wxHaskell over cabal (because
On Wed, 19 May 2010 13:43:20 +0100
James Fenn
Hi,
I learning haskell and I am trying to understand how model certain things in it. As I have been doing a lot of C++ programming so far. Let's imagine we want to write a game. In the game there are spaceships and rocks (image something like astroids :) ). Now both spaceships and rocks have a position and can move. Spaceships can shoot, while rocks can explode.
There is a well documented implementation, called wxAsteroids; see http://www.haskell.org/haskellwiki/WxAsteroids
Regards, Henk-Jan van Tuyl
-- http://Van.Tuyl.eu/ http://members.chello.nl/hjgtuyl/tourdemonad.html -- _______________________________________________ Beginners mailing list Beginners@haskell.org http://www.haskell.org/mailman/listinfo/beginners
_______________________________________________ Beginners mailing list Beginners@haskell.org http://www.haskell.org/mailman/listinfo/beginners

On Wednesday 19 May 2010 14:46:46, Nathan Huesken wrote:
On Wed, 19 May 2010 13:43:20 +0100
James Fenn
wrote: For me on ubuntu karmic and haskell platform 2010.1, WxWidgets doesn't seem to be responding to keypresses. I have only tried it with WxAsteroids as I thought it would be useful for me to study. Does anyone else have the same problem? Cheers, James
On 19 May 2010 09:02, Henk-Jan van Tuyl
wrote: On Tue, 18 May 2010 05:21:38 +0200,
wrote: Yes, same problem here. Gentoo, installed wxHaskell over cabal (because the gentoo ebuild is outdated).
Yes, here too (openSUSE 11.1), though it does respond to Ctrl+[N/P/Q], but not to any other keypress.
participants (3)
-
Daniel Fischer
-
James Fenn
-
Nathan Huesken