[EMAIL PROTECTED] reports the following problem.

Version:       1.4 Jan. 1998 
OS:            Linux 
compiler:      gcc 
configuration: readline 
Expected behaviour:
2^(-1) should return 0.5
Observed behaviour:
2^(-1) gave the error
Program error: Prelude.^: negative exponent

Transcript:
2^(-1)
Program error: Prelude.^: negative exponent

Code:
I don't know if there is some flaw in the class hierarchy
that no one has managed to figure out, but this seems like
a pretty serious bug.  The obvios solution:
expon x y = if y<0 then 1 / x^y else x^y
had type (Fractional a, Integral b) => a -> b -> a



Reply via email to