Example Code
Hopefully these are reasonably self explanatory, when it turns out they are not, ask for more detailed examples and I will think some up.
Haskell
- Hello World
- Simple Functions
- Pattern Matching
- Data Types
- Type Variables
- Higher Order Functions
- Monads
HOpenGL
These are needed for most of the later examples. They were taken from another guide, but I don't remember where, basically these are not mine, but will be of use to you.
- 01FirstExample.hs
- 02RotatingCube.hs
- 03SimpleMaze.hs
- 04_SquareTexture.hs
- 05TexturedCube.hs
- 06Landscape.hs
- A slightly more complex example, which I hope to use as a jumping off point myself to make a game at some point