[Haskell-cafe] Why is toRational a method of Real?

Ivan Lazar Miljenovic ivan.miljenovic at gmail.com
Wed Aug 4 22:17:50 EDT 2010

On 5 August 2010 10:15, Lennart Augustsson <lennart at augustsson.net> wrote:
> You're right.  It's bad to have toRational in Real.  It's also bad to
> have Show and Eq as superclasses to Num.

I understand why it's bad to have Show as a superclass, but why Eq?
Because it stops you from using functions as numbers, etc. ?

Ivan Lazar Miljenovic
Ivan.Miljenovic at gmail.com

More information about the Haskell-Cafe mailing list