Why should they? You can compare them in whatever way you like. And there
isn't a natural/inherent sense of total order between types.

On Sun, Dec 5, 2010 at 6:08 AM, Serguey Zefirov <sergu...@gmail.com> wrote:

> Why TypeRep does have equality and doesn't have ordering?
>
> It would be good to have that.
>
> Right now when I have to order two type representations I convert them
> to string and then compare. This is somewhat inefficient and not quite
> straightforward.
>
> _______________________________________________
> Haskell-Cafe mailing list
> Haskell-Cafe@haskell.org
> http://www.haskell.org/mailman/listinfo/haskell-cafe
>



--
Tianyi Cui
_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to