GHC 6.6.1: Where is Graphics.SOE ?

I am trying to use Graphics.SOE (that was present at least in GHC 6.4) to go through "Simple Graphics" examples as described in Pail Hudak book "The Haskell School of Expression. Learning functional programming through multimedia". It looks like Graphics.SOE does not anymore exist in GHC 6.6.1. Where one can get it or what to use instead of it? Do I understand right that Graphics library in GHC 6.6.1 is split between OpenGL and GLUT modules? Any tutorials on OpenGL and GLUT modules similar to Paul Hudak "Simple Graphics"? Thanks! -- Dmitri O. Kondratiev dokondr@gmail.com http://www.geocities.com/dkondr

Dmitri O.Kondratiev:
It looks like Graphics.SOE does not anymore exist in GHC 6.6.1. Where one can get it or what to use instead of it?
You may try Gtk2Hs, which includes an implementation of SOE, called Graphics.SOE.Gtk. (It works independently of the actual Gtk API.) Use then the darcs version, because I remember an SOE bug fixed since the last release. Malte

On 7/17/07, Malte Milatz
Dmitri O.Kondratiev:
It looks like Graphics.SOE does not anymore exist in GHC 6.6.1. Where one can get it or what to use instead of it?
You may try Gtk2Hs, which includes an implementation of SOE, called Graphics.SOE.Gtk. (It works independently of the actual Gtk API.) Use then the darcs version, because I remember an SOE bug fixed since the last release.
Malte
Malte, Thanks. The problem is that I need to run SOE on Win32. When I try to run a simple SOE app. in GHCi with Gtk2Hs Win32 release, this code: module GWindow where import Graphics.SOE.Gtk main() = runGraphics ( do w <- openWindow "Graphics Test" (300, 300) drawInWindow w (text (100, 200) "Hello Graphics World") k <- getKey w closeWindow w ) displays a window and hangs. I can get development release of Gtk2Hs with darcs, but how can I build it on Win32? Dima -- Dmitri O. Kondratiev dokondr@gmail.com http://www.geocities.com/dkondr

Hi Dmitri,
I built gtk2hs on Windows with GHC 6.6.1 and gtk2hs-0.9.11. Here's are the
steps that worked for me: (not sure I didn't missed some)
First you need to install a GTK+ development package for windows. I think
mine comes from http://gladewin32.sourceforge.net/modules/wfdownloads/
Then you must have MSYS and MinGW installed on your computer. You'll find
information on how to install this here:
http://hackage.haskell.org/trac/ghc/wiki/Building/Windows.
Once you've installed that stuff you can start a MSYS shell. You'll need to
set some environment variables for GTK (adapt to your path):
export GTK_BASEPATH=/c/GTK_2.0
export GTK_CONFIG_PATH=/c/GTK_2.0/lib/pkgconfig
Cd to the gtk2hs source directory and type:
./configure --prefix=/c/Progra~1/Haskell
make
make install
Hope this helps.
Good luck,
Olivier.
On 7/18/07, Dmitri O.Kondratiev
On 7/17/07, Malte Milatz
wrote: Dmitri O.Kondratiev:
It looks like Graphics.SOE does not anymore exist in GHC 6.6.1. Where one can get it or what to use instead of it?
You may try Gtk2Hs, which includes an implementation of SOE, called Graphics.SOE.Gtk. (It works independently of the actual Gtk API.) Use then the darcs version, because I remember an SOE bug fixed since the last release.
Malte
Malte, Thanks. The problem is that I need to run SOE on Win32. When I try to run a simple SOE app. in GHCi with Gtk2Hs Win32 release, this code:
module GWindow where import Graphics.SOE.Gtk
main() = runGraphics ( do w <- openWindow "Graphics Test" (300, 300) drawInWindow w (text (100, 200) "Hello Graphics World") k <- getKey w closeWindow w )
displays a window and hangs.
I can get development release of Gtk2Hs with darcs, but how can I build it on Win32?
Dima
-- Dmitri O. Kondratiev dokondr@gmail.com http://www.geocities.com/dkondr
_______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

On Tue, Jul 17, 2007 at 06:52:43PM +0400, Dmitri O.Kondratiev wrote:
I am trying to use Graphics.SOE (that was present at least in GHC 6.4) to go through "Simple Graphics" examples as described in Pail Hudak book "The Haskell School of Expression. Learning functional programming through multimedia". It looks like Graphics.SOE does not anymore exist in GHC 6.6.1. Where one can get it or what to use instead of it? Do I understand right that Graphics library in GHC 6.6.1 is split between OpenGL and GLUT modules? Any tutorials on OpenGL and GLUT modules similar to Paul Hudak "Simple Graphics"?
Hi! as far as I know what you are looking for (Graphics.SOE) is part of HGL. Have a look here: http://hackage.haskell.org/cgi-bin/hackage-scripts/package/HGL-3.1 Hope I got it right and that this helps. All the best, Andrea
participants (4)
-
Andrea Rossato
-
Dmitri O.Kondratiev
-
Malte Milatz
-
Olivier Boudry