how to compose a monad with hopengl
chris moline <[email protected]>
| Newsgroups | gmane.comp.lang.haskell.hopengl |
|---|---|
| Message-ID | <1040155880.8368.49.camel@localhost> |
hi. i was hoping someone here could help me. i am writing a clone of burgerspace and i would like to use hopengl for the graphics. i would like to be able to write my game engine in a monadic style but i am not sure how i would be able to use it with hopengl if i do that. the best way that i can think of right now would be to pass around my state in an ioref. is this the best way or is it possible to do it in a more functional way? sincerly, chris