Interactive OpenGL-based graphics and ghci?

I'm trying to find some way to do interactive, OpenGL-based graphics in Haskell on Mac OS X. Does anyone here use GLUT or SDL on Mac OS X with ghci, or maybe an alternative library? Using ghci is very important to me, as my programs are pretty high-level and are often half-liners. I'm using gtk2hs for now, but I want something that works more natively, i.e., without the awkwardness of going through the X server. Thanks, - Conal

On Sat, Nov 20, 2010 at 4:46 PM, Conal Elliott
I'm trying to find some way to do interactive, OpenGL-based graphics in Haskell on Mac OS X. Does anyone here use GLUT or SDL on Mac OS X with ghci, or maybe an alternative library?
I was reading the GHC 7 release notes and saw this: * There is a new -fno-ghci-sandbox flag, which stops GHCi running computations in a separate thread; in particular, this works around an issue running GLUT from GHCi on OS X So that seems to indicate that GLUT would fulfill your needs. Luke

I've always had issues with GLUT under ghci. If GHC 7 fixes this it
will make me happy :)
On Sun, Nov 21, 2010 at 7:54 AM, Luke Palmer
On Sat, Nov 20, 2010 at 4:46 PM, Conal Elliott
wrote: I'm trying to find some way to do interactive, OpenGL-based graphics in Haskell on Mac OS X. Does anyone here use GLUT or SDL on Mac OS X with ghci, or maybe an alternative library?
I was reading the GHC 7 release notes and saw this:
* There is a new -fno-ghci-sandbox flag, which stops GHCi running computations in a separate thread; in particular, this works around an issue running GLUT from GHCi on OS X
So that seems to indicate that GLUT would fulfill your needs.
Luke _______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
participants (3)
-
Conal Elliott
-
Luke Palmer
-
Lyndon Maydwell