[Haskell-cafe] Looking for a more functional way to do this

Claude Heiland-Allen claudiusmaximus at goto10.org
Wed Aug 6 14:39:24 EDT 2008


Jefferson Heard wrote:
> Adrian, my understanding is that it's not that simple, because I need
> to preserve the state between calls to GLUT's callbacks, which all
> return IO ().

Then maybe see:

http://www.haskell.org/pipermail/haskell-cafe/2007-July/028501.html

> 2008/8/6 Adrian Neumann <aneumann at inf.fu-berlin.de>:
>> There is the State Monad which is build just for that kind of purpose, I
>> believe:
>>
>> http://www.haskell.org/all_about_monads/html/statemonad.html
>>
>> That would safe you from passing around the State
>>
>> Jefferson Heard schrieb:
>>> Working with HOpenGL and GLUT,

[snip]


Claude


More information about the Haskell-Cafe mailing list