
Peter Verswyvelen ha scritto:
1) install "cabal-install". download this file http://www.haskell.org/cabal/release/cabal-install-0.6.2/cabal.exe and put it in a directory in your %PATH%
2) to compile most libraries on Hackage that link to C libraries via the FFI, you need to install MinGW and MSYS, as Jeff said explained here http://netsuperbrain.com/blog/posts/freeglut-windows-hopengl-hglut/ (many thanks to David Sankel for taking the time to write this). After you installed this, you have UNIX like environment and the GNU C compiler suite.
3) start MSYS, and type "cabal install opengl". This will download, configure, build and install opengl from hackage.
this works for me.
This is an overkill, really. IMHO, there should be no need to install an UNIX like environment on Windows. The problem, here, is that packages use autoconf. This should be avoided; instead Cabal should support some simple features for packages configuration. http://hackage.haskell.org/trac/hackage/ticket/530 Does HOpenGL really need all the features of autoconf?
[...]
Regards Manlio