> http://cvs.haskell.org/cgi-bin
/cvsweb.cgi/fptools/libraries/GLUT/examples/RedBook/
On 7/2/07, Hugh Perkins <hughperkins@gmail.com> wrote:
> Anyway, so the question is: how do we write callback functions in
> FP/Haskell? Can someone provide a simple, but functional example?
What makes a callback different from any other kind of function? In
Haskell, as in other functional programming languages, you're
completely free to pass functions into other functions and store them
in datastructures. Take a look at the 'callbacks' used in the HOpenGL
examples. They're just ordinary functions:
http://cvs.haskell.org/cgi-bin/cvsweb.cgi/fptools/libraries/GLUT/examples/RedBook/
--
Dan
_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe