Data.Map, Data.IntMap documentation

Adrian Hey ahey at
Sat Aug 18 13:39:12 EDT 2007

Arie Peterson wrote:
> For example, when I write 'someTree < otherTree' the compiler shouts at me
> and helps me realise that I actually meant 'height someTree < height
> otherTree'. This mechanism fails once I need trees to be keys in a map. My
> current solution (newtypes) is far from ideal.

This seems a bit anal to me. If you really are worried about such things
it's probably best to avoid using lists too, or you might end up
writing (xs < ys) instead of (length xs < length ys)

Adrian Hey

More information about the Libraries mailing list