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

Serguey Zefirov sergueyz at gmail.com
Thu Dec 30 11:22:44 CET 2010


2010/12/30 Andreas Baldeau <andreas at baldeau.net>:
> instance Ord TypeRep where
>    compare t1 t2 =
>        compare
>            (unsafePerformIO (typeRepKey t1))
>            (unsafePerformIO (typeRepKey t2))

I think it would suffice. Thank you for a tip.



More information about the Haskell-Cafe mailing list