[Haskell-cafe] Code from Haskell School of Expression hanging.

2011-01-30 Thread jean legrand
Maybe you could try The HGL package http://hackage.haskell.org/package/HGL and then replace import SOE by import Graphics.SOE. ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

[Haskell-cafe] Re: OpenAL and Hsndfile

2009-12-09 Thread jean legrand
a while ago, I wrote a minimal and inefficient code to generate and play an audible 4-second-sine sound http://hpaste.org/fastcgi/hpaste.fcgi/view?id=1538 Can you hear something with it ? ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org

[Haskell-cafe] GLFW Textures (bloxorz)

2009-11-27 Thread jean legrand
Hi Haskellers, I have two issues with the bloxorz game (current version bloxorz-0.1 on hackage). Perhaps they're mutually related. You tell me. First, it seems that there is no refresh on the successive block positions. Look at http://img524.imageshack.us/img524/5945/bloxissue1.png to see

Re: [Haskell-cafe] GLFW Textures (bloxorz)

2009-11-27 Thread jean legrand
I installed the libglfw-dev pkg and now : find /usr -name *glfw* /usr/share/doc/libglfw-dev /usr/share/doc/libglfw2 /usr/lib/libglfw.so /usr/lib/libglfw.a /usr/lib/libglfw.so.2 /usr/lib/pkgconfig/libglfw.pc /usr/lib/libglfw.so.2.6 /usr/include/GL/glfw.h gears.c and pong3D.c(lot of textures) play

[Haskell-cafe] Re: Where can I find a non-fee-based version of Hudak's paper, Conception, evolution, and application of functional programming languages?

2009-09-17 Thread jean legrand
Does anybody know where I can find a non-fee-based version of Paul Hudak's paper, Conception, evolution, and application of functional programming languages [1]? There used to be a version that did not seems you can get a djvu copy here http://lib.org.by/info/Cs_Computer

Re : [Haskell-cafe] simulation in the haskell way

2009-08-18 Thread jean legrand
Then what's the best way to simulate private states or just instead how to solve simulation problems such as a physical engine using the haskell way? perhaps Hipmunk ? http://hackage.haskell.org/package/Hipmunk ___ Haskell-Cafe mailing list

Re : [Haskell-cafe] Elerea/GLFW Tetris

2009-08-17 Thread jean legrand
As I've been warned, two dependencies (Common.Utils and Common.Vector) are to be resolved in order to use this Tetris code. They're part of the elerea-examples package (from hackage) but their access is not public so a solution is to modify the cabal file during installation. Another solution

Re : [Haskell-cafe] Elerea/GLFW Tetris

2009-08-17 Thread jean legrand
As I've been warned, two dependencies (Common.Utils and Common.Vector) are to be resolved in order to use this Tetris code. They're part of the elerea-examples package (from hackage) but their access is not public so a solution is to modify the cabal file during installation. Another

[Haskell-cafe] Elerea/GLFW Tetris

2009-08-15 Thread jean legrand
Hi Haskellers, Here is my first real program in Haskell. http://hpaste.org:80/fastcgi/hpaste.fcgi/view?id=8211 In fact, I'm not fully responsible because it's just an adapted version of a Tetris Creighton Hogg had written for Reactive/GLUT. As the first version, it's a very simple game (no

Re: [Haskell-cafe] Elerea/GLFW Tetris

2009-08-15 Thread jean legrand
How come you started out with playing around with FRP libraries right away? It's a rather peculiar choice, I'd say. I'm always curious about how the languages I study interact with OpenGL because I'm in the numerical simulation. When I came to Haskell on December, it was quite a new

Re: [Haskell-cafe] Improving event management in elerea

2009-08-14 Thread jean legrand
so you'd jump a huge amount in every frame. What I had in can you explain, please ? I can't feel it when I play. something like this: ifte :: Signal Bool - Signal a - Signal a - Signal a ifte sc st sf = (\c t f - if c then t else f) $ sc * st * sf And then: playerX - integral

Re: [Haskell-cafe] Improving event management in elerea

2009-08-14 Thread jean legrand
to the frame time, so you can adjust the speed to be independent of it. ok, thanks integralClamped v0 vmin vmax s = transfer v0 accum s where accum dt v v0 = max vmin $ min vmax $ v0+v*realToFrac dt playerX - integralClamped playerX0 (-fieldW) (fieldW-playerW) (ifte

Re : [Haskell-cafe] Improving event management in elerea

2009-08-13 Thread jean legrand
http://hpaste.org:80/fastcgi/hpaste.fcgi/view?id=8159 and I have two questions. 1) my event function (line 79) returns a new signal and takes 3 arguments : an initial signal and a Bool signal which triggers when to apply the transform function given as a third argument. The body of the

Re: [Haskell-cafe] Improving event management in elerea

2009-08-13 Thread jean legrand
detected on a bool signal. In that case, it would be easier to define it in terms of transfer: accumIf :: a - (a - a) - Signal Bool - SignalMonad (Signal a) accumIf v0 f b = transfer v0 g b where g _dt c x0 = if c then f x0 else x0 event :: a - Signal Bool - (a - a) - SignalMonad

[Haskell-cafe] Improving event management in elerea

2009-08-12 Thread jean legrand
Hi Haskellers, I've written a new version of the breakout elerea-example where mouse is replaced by LEFT and RIGHT keys http://hpaste.org:80/fastcgi/hpaste.fcgi/view?id=8159 and I have two questions. 1) my event function (line 79) returns a new signal and takes 3 arguments : an initial