
2 Dec
2007
2 Dec
'07
2:43 a.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