Re: [Haskell] instance Bounded Double

2005-03-13 Thread John Meacham
On Sun, Mar 13, 2005 at 11:08:26PM +, Thomas Davie wrote: > I may be barking up the wrong tree here, but I think the key to this > discussion is that real numbers are not bounded, while doubles are > bounded. One cannot say what the smallest or largest real number are, > but one can say wha

Re: [Haskell] instance Bounded Double

2005-03-13 Thread Frederik Eaton
Perhaps some motivation is in order. In an interval arithmetic library, I have 'Bounded a' as a constraint on the instance 'Fractional (Interval a)' because an interval of maximum bound can result when dividing by an interval containing zero. In a function solver library I wrote, parameters need to

Re: [Haskell] Embedded Systems

2005-03-13 Thread Tony Sloane
I'm wondering if there is any port of Haskell to Embedded systems. Any hint welcomed nhc has been used for a number of embedded projects. As mentioned by Don Stewart, my group at Macquarie has a project to port nhc98 to Palm OS (not quite embedded but some similar issues). An older port th

Re: [Haskell] instance Bounded Double

2005-03-13 Thread Lennart Augustsson
I agree with all of that. :) -- Lennart Thomas Davie wrote: I may be barking up the wrong tree here, but I think the key to this discussion is that real numbers are not bounded, while doubles are bounded. One cannot say what the smallest or largest real number are, but one can say what

Re: [Haskell] instance Bounded Double

2005-03-13 Thread Thomas Davie
I may be barking up the wrong tree here, but I think the key to this discussion is that real numbers are not bounded, while doubles are bounded. One cannot say what the smallest or largest real number are, but one can say what the smallest or largest double are (and it is unfortunately impleme

Re: [Haskell] instance Bounded Double

2005-03-13 Thread Lennart Augustsson
And what would you have minBound and maxBound be? I guess you could use +/- the maximum value representable. Going for infinity is rather dodgy, and assumes an FP representation that has infinity. -- Lennart Frederik Eaton wrote: Interesting. In that case, I would agree that portability see

[Haskell] Re: ANNOUNCE: GHC version 6.4

2005-03-13 Thread Wolfgang Thaller
= The (Interactive) Glasgow Haskell Compiler -- version 6.4 = A Mac OS X installer package for Mac OS 10.3 (Panther) is available at http://www.uni-graz.at/imawww/haskel

Re: [Haskell] instance Bounded Double

2005-03-13 Thread Frederik Eaton
Interesting. In that case, I would agree that portability seems like another reason to define a Bounded instance for Double. That way users could call 'maxBound' and 'minBound' rather than 1/0 and -(1/0)... Frederik On Fri, Mar 11, 2005 at 11:10:33AM +0100, Lennart Augustsson wrote: > Haskell doe

Re: [Haskell] announce: wxhaskell 0.9

2005-03-13 Thread Benjamin Franksen
On Sunday 13 March 2005 22:59, Benjamin Franksen wrote: > On Friday 25 February 2005 19:14, Daan Leijen wrote: > > Announcement: wxHaskell version 0.9 > > Could you (or anyone else) please give me a summary on how exactly I have > to patch the makefile[.lib] so that I can compile this _with_ > g

Re: [Haskell] announce: wxhaskell 0.9

2005-03-13 Thread Benjamin Franksen
On Friday 25 February 2005 19:14, Daan Leijen wrote: > Announcement: wxHaskell version 0.9 Could you (or anyone else) please give me a summary on how exactly I have to patch the makefile[.lib] so that I can compile this ghc-6.4? I found the discussion a bit confusing, because there were so many

[Haskell] Re: ANNOUNCE: GHC version 6.4

2005-03-13 Thread Wolfgang Thaller
= The (Interactive) Glasgow Haskell Compiler -- version 6.4 = A Mac OS X installer package for Mac OS 10.3 (Panther) is available at http://www.uni-graz.at/imawww/haskel