hi

2006/5/25, Joel Reymont <[EMAIL PROTECTED]>:

[snip]
Also, it seems to me that the only way to deal with variable numbers
of differently typed arguments is to use the HList approach which is
quite heavy machinery, IMO.

(i ve made a quick read of previous reply .. think there is not my answer :)
the usual way to deal with that is just
http://www.haskell.org/hawiki/ExistentialTypes.

To put it simply : u encapsulate each different data type in one
"unifying" wrapping type.
It works as long as each wrapped type belongs to the same (haskell) class.

I think that if you add a String or something to identify the wrapped
data, you can manage the data part of you problem (but i dont know for
moving functions).

Cheers,
mt
_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to