Monday, May 18, 2009

Wumpus

Copperbox revision 604.

I've added an experiment with a state tracking parameterized monad. The state is the drawing path - the pmonad enforces that you must create a path with newpath before adding lines with lineto; then you must use closepath before fill or stroke (and it enforces that you can only do one or the other).

This is very slick as it took almost no effort, unfortunately it does mean the do-notation can't be used, so I'm not sure if it has a place in Wumpus.

Blog Archive

About Me

My photo
Disambiguating biog as there are a few Stephen Tetley's in the world. I'm neither a cage fighter or yachtsman. I studied Fine Art in the nineties (foundation Bradford 1992, degree Cheltenham 1992 - 95) then Computing part-time at Leeds Met graduating in 2003. I'm the Stephen Tetley on Haskell Cafe and Stackoverflow.