[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
- Re: Hugs Bug report Alastair Reid
- Hugs Bug report nobody
- Re: Hugs Bug report Alastair Reid
- Hugs Bug report nobody
- Re: Hugs Bug report Alastair Reid
- Re: Hugs Bug report Lennart Augustsson
- Re: Hugs Bug report Olivier Lefevre
- Re: Hugs Bug report Alastair Reid
- Hugs Bug report nobody
- Re: Hugs Bug report Mark P Jones
- Hugs Bug report nobody
- Hugs Bug report nobody
- Re: Hugs Bug report Alastair Reid
- Hugs Bug report nobody
- Hugs Bug report nobody
- Re: Hugs Bug report Yoshihiko ICHIKAWA
- Re: Hugs Bug report Mark P Jones
- Re: Hugs Bug report Simon Marlow
- Hugs Bug report nobody
- Hugs Bug report nobody
- Hugs Bug report nobody
