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] [email protected]
system administrator [openafs,heimdal,too many hats] [email protected]
electrical and computer engineering, carnegie mellon university KF8NH
PGP.sig
Description: This is a digitally signed message part
_______________________________________________ Haskell-Cafe mailing list [email protected] http://www.haskell.org/mailman/listinfo/haskell-cafe
