
On 2009 Mar 22, at 19:10, Rafael Cunha de Almeida wrote:
Doing it like that I could have all the definitions in one module, but it doesn't solve another important problem: keyboardMouse and display functions have to have as many parameters as there are IORefs.
Or a single argument which holds all IORefs. Or record-style pattern matching:
If I wanted to add a new IORef I'd have to do something like: keyboard var1 _ _ LeftKey = ... keyboard _ var2 _ RightKey = ... keyboard _ _ var3 RightKey = ...
keyboard {v = var1} LeftKey = ... keyboard {v = var2} RightKey = ... -- brandon s. allbery [solaris,freebsd,perl,pugs,haskell] allbery@kf8nh.com system administrator [openafs,heimdal,too many hats] allbery@ece.cmu.edu electrical and computer engineering, carnegie mellon university KF8NH