[Haskell-cafe] a question concerning type constructors

Eric eeoam at ukfsn.org
Sat May 5 09:26:45 EDT 2007


Hi all,

In Haskell, is it possible to declare a type constructor with a variable 
number of type variables e.g.

data Tuple * ....

allowing the following declarations:

t: Tuple
u: Tuple Bool
v: Tuple Bool Int
w: Tuple Bool Int Char

?

E.




More information about the Haskell-Cafe mailing list