Re: declaring a generic type in type synonyms

2002-02-21 Thread Pixel
"Andre W B Furtado" <[EMAIL PROTECTED]> writes: > Is is possible to declare a generic type without using "data" or "newtype"? > For example, I woud like that "pair" is a type synonym for "(t,t)" where t > is a generic type, but just saying: > > > type pair = (t,t) > > won't work: i get a parse

declaring a generic type in type synonyms

2002-02-21 Thread Andre W B Furtado
Is is possible to declare a generic type without using "data" or "newtype"? For example, I woud like that "pair" is a type synonym for "(t,t)" where t is a generic type, but just saying: > type pair = (t,t) won't work: i get a parse error. Thanks, -- Andre _