Tuesday, July 28, 2009

Wumpus

Copperbox revision 715.

I've remade the Wumpus monad to be ReaderT over WriterT rather than StateT over WriterT.

While the original is a more accurate model of PostScript - changes to the graphics context are global (or a least delimited by gsave/grestore), the new monad allows me to control effects better. In Haskell changes are delimited by the Reader monad's local and are translated into PostScript within gsave/grestore blocks.

Also, I've gone through all the examples and made sure they compile and do something. Sometimes this has meant commenting out drawing operations that have become outdated but aren't yet replaced.

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.