Alex Rivera | Logout

Haskell or Ocaml with OpenGL and SDL precompiled distribution for Windows

Asked 2010-08-01T10:54:31.427
10

I want to learn Ocaml or Haskell and I want to do it by writing a simple game. Apparently, there's one small problem: nobody cares about Windows and I want to do it on Windows, natively.

Haskell has Cabal, which has SDL, but it doesn't build due to a trivial problem with no workarounds (order of parameters passed to gcc). Ocaml doesn't even have that, it's all in source packages, be it GLCaml or OcamlSDL or whatever.

Is there a place where I can get a working SDL for Haskell or Ocaml on Windows without fighting with a dozen versions of compilers?

Edit
Report

1 Answer

5

The Haskell Platform comes with a binding to OpenGL which should work out of the box on Windows.

Concerning the SDL package on hackage, you can use cabal unpack SDL to get the source code and fix things yourself. To install the package with your changes, run cabal install in the unpacked directory. In any case, drop a line to the maintainer, I'm sure he'll help out.

answered 2010-08-01T11:18:33.387

Your Answer