[Haskell-cafe] ghci + hopengl

Duane Johnson duane.johnson at gmail.com
Sat Mar 21 17:18:10 EDT 2009

I've had issues with ghci and opengl... I usually have to compile my  
programs before they will run.  I'm not sure why that's the case, but  
I too get strange window behavior (sometimes it freezes, other times  
it doesn't even show up).

If you're on a Mac and would like help compiling to a .app folder, let  
me know and I can post how I did that.

Duane Johnson

On Mar 21, 2009, at 1:27 PM, Rafael Cunha de Almeida wrote:

> Hello,
> I'm writing a program for plotting vectorial functions and maybe
> something else in the future. My goal is to be able to have the
> following usage:
> 	Prelude> :l Galo.hs
> 	Prelude Galo> show3Dvec (\t -> (t, t, 0)) [0.0,0.01 .. 1.0]
> 	* shows graph *
> 	Prelude Galo> show3Dvec (\t -> (t, t**2, 0)) [0.0,0.01 .. 1.0]
> 	* shows new graph *
> I already done something, the main module can be found here:
> 	http://github.com/aflag/galo/blob/0a54a53db0f66384cfc0775f12582931d0fb4205/Galo.hs
> The whole project is found here:
> 	http://github.com/aflag/galo/tree/master
> I think mainLoop is somehow responsible to exit the whole thing. I
> tried to even call that function through forkIO. But didn't work quite
> well: my terminal started behaving really weird after I closed the
> window.
> Could you explain me what is going on and what should I look into for
> understanding how to solve the issue?
> []'s
> Rafael
> _______________________________________________
> Haskell-Cafe mailing list
> Haskell-Cafe at haskell.org
> http://www.haskell.org/mailman/listinfo/haskell-cafe

More information about the Haskell-Cafe mailing list