[Haskell-cafe] Data.Typeable TypeRep Ord instance.

Tianyi Cui tianyicui at gmail.com
Sat Dec 4 23:59:12 CET 2010

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 <sergueyz at 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 at haskell.org
> http://www.haskell.org/mailman/listinfo/haskell-cafe

Tianyi Cui
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/haskell-cafe/attachments/20101205/9b870847/attachment.htm>

More information about the Haskell-Cafe mailing list