Re: The last (sic) bug in the Prelude

1992-02-27 Thread jhf
Let me try that again: rationalToRealFloat:: (RealFloat a) => Rational -> a rationalToRealFloat x = x' where x'= f e f e = if e' == e then y else f e' where y = encodeFloat (round (x * (b%1)::(-e)) e (_,e') = decod

Re: The last (sic) bug in the Prelude

1992-02-27 Thread jhf
Folks, Here's an attempt at rationalToRealFloat (formerly known as rationalToFloating): rationalToRealFloat:: (RealFloat a) => Rational -> a rationalToRealFloat x = x' where x'= f e f e = if e' == e then y else f e' where y = encodeFloat (ro

Enum bugs in 1.2.beta

1992-02-27 Thread Mikael Rittri
At the last minute, I have found some Enum bugs in 1.2.beta. As I don't know if they have been fixed in 1.2.gamma, which I guess was circulated yesterday, here they are: 1) According to the specification (section 3.9), the value of [ 7, 7 .. 3 ] is the infinite li

The last (sic) bug in the Prelude

1992-02-27 Thread Simon L Peyton Jones
I thought this message from Joe should have wider circulation. Someone out there must have good ideas about this! Simon --- Forwarded Message Date:Thu, 27 Feb 92 01:38:44 -0700 From:[EMAIL PROTECTED] (Joe Fasel) To: [EMAIL PROTECTED], [EMAIL PROTECTED], kh, [EMAIL PRO

Re: Exporting classes and methods.

1992-02-27 Thread Kevin Hammond
> I've got a query about exporting classes and instances from a module. > In the report (1.2beta) it says that a class and all its methods are exported > if either it is explicitly named in the export list, or implicitly exported > if the export list is omited. I don't understand what is sup

Exporting classes and methods.

1992-02-27 Thread Jon Hill
Hi, I've got a query about exporting classes and instances from a module. In the report (1.2beta) it says that a class and all its methods are exported if either it is explicitly named in the export list, or implicitly exported if the export list is omited. I don't understand what is suppo

Re: Enum bugs in 1.2.beta

1992-02-27 Thread jhf
|At the last minute, I have found some Enum bugs in 1.2.beta. |As I don't know if they have been fixed in 1.2.gamma, which |I guess was circulated yesterday, here they are: Thanks, Mikael. | 1) According to the specification (section 3.9), the | value of | | [ 7, 7 .. 3 ] |