Mike Austin's Blog

Wednesday, November 23, 2005

Frag, an FPS game written in Haskell

I'm not a Haskell expert, but I find it interesting to write a very state-heavy domain, games and OpenGL, in a purely functional language. The problem is, you must know Haskell to discern what is going on. It's not something you can't grok easily if all you know is non-functional languages. There seems to be a lot of imparative constructs - monads and IORefs (mutable values I believe), so in the end, it's actually not using much of functional programming. If I'm wrong here, let me know.

Source | Images