Yeah, I was thinking it was node count, not depth. In
general, though, the question is what to do when you have
some count that could potentially be larger than would fit
in an Int, but normally wouldn't be. The "solution" in
Data.List makes me wonder what should really happen.
> > Uggh. (And no, don't ask me why Ord isn't an instance of Eq
> > automatically. You'd think, wouldn't you?)
>
> Okasaki makes a good point for this. For a priority queue interface
> your elements need to be in Ord, but not necessarily in Eq (while for
> sets you need Eq, but not necessarily Ord). The two are independent.
In general, one can have partial orders with equality
undefined. Given that the Haskell type Ord has EQ as a
constructor, though, anything in Ord is necessarily testable
for equality, I think?
I guess I want Equality, PartialOrder and TotalOrder
typeclasses, with the obvious relationships?
Bart