26 Nov
2003
26 Nov
'03
9:49 p.m.
rui yang wrote:
Suppose I have a function:
funcmap :: a->b->c
can I use type synonyms to describe a new type like this: Type Funcmap = a->b>c ?
First, it's 'type' not 'Type'. Second, you want '->' not '>'. Third, all type variables in the RHS must be on the LHS. So, we get type Funcmap a b c = a->b->c