---------- Strange.hs ----------
x = 3

main = print $ 6 / x
--------------------------------

Hugs 1.4 complains: ERROR "Strange.hs" (line 3): Int is not an
instance of class "Fractional".  GHC however compiles the program.
Substitute for x and Hugs is happy.  What's going on?

I haven't studied the numeric classes much so perhaps I'm missing
something obvious here.  (I see that the bugs page alludes to some 1.4
features not in Hugs leading to type errors.  If this is it, maybe you
should give it as an example?)

  Bjarte

Reply via email to