
1 Dec
2007
1 Dec
'07
9:43 p.m.
Hi
type assoc k v = [(k, v)]
works beautifully and everything makes sense.
type Assoc v = (Ord k) => [(k, v)]
This doesn't work. Is there any wayof defining k as an element of type Ordinal. I could redefine k by putting Char or Int in its place. Why can't I be more general? Thanks, Paul