Re: Repair to floating point enumerations?

2008-10-15 Thread David Roundy
On Wed, Oct 15, 2008 at 10:41:25AM +0100, Malcolm Wallace wrote: Dear Haskell-Primers (and libraries). Recently, Phil Wadler has pointed out a weird anomaly in the Haskell'98 Prelude, regarding numeric enumerations for Floats/Doubles: Prelude [0, 0.3 .. 1.1]

Re: Repair to floating point enumerations?

2008-10-15 Thread David Roundy
. Floating point numbers are not the real numbers, and the sooner they learn that the better. We can fudge this all we like, but 0.1 is never going to be exactly representable as a binary floating point number no matter what we do. On Wed, Oct 15, 2008 at 3:44 PM, David Roundy [EMAIL PROTECTED

Re: ADT views Re: [Haskell] Views in Haskell

2007-02-01 Thread David Roundy
that I define a helper function that's only used once. -- David Roundy Department of Physics Oregon State University ___ Haskell-prime mailing list Haskell-prime@haskell.org http://www.haskell.org/mailman/listinfo/haskell-prime

Re: ADT views Re: [Haskell] Views in Haskell

2007-02-01 Thread David Roundy
On Thu, Feb 01, 2007 at 09:12:02AM -0800, David Roundy wrote: On Wed, Jan 31, 2007 at 09:28:30PM +0300, Bulat Ziganshin wrote: Next, i don't think that ability to use any functions in view buy something important. pattern guards can be used for arbitrary functions, or such function can

Re: ADT views Re: [Haskell] Views in Haskell

2007-01-31 Thread David Roundy
that the view Coord is a function that you can never explicitely call, but to me that just makes things even more confusing. Now we're defining functions that we can only use in pattern matching, but can never call. -- David Roundy http://www.darcs.net ___ Haskell

Re: infix MPTC?

2006-12-06 Thread David Roundy
(a :: b) rather than the always-vague (LT a b) which either reads the same as the infix version or backwards. [...] I think they are valid now! Silly me! I didn't even think to try! Nice. And thanks! -- David Roundy Department of Physics Oregon State University

Re: Pattern guards

2006-09-28 Thread David Roundy
, more complicated functions. -- David Roundy ___ Haskell-prime mailing list Haskell-prime@haskell.org http://www.haskell.org/mailman/listinfo/haskell-prime

Re: preemptive vs cooperative: attempt at formalization

2006-04-13 Thread David Roundy
desired latency. His spec does this in a rigorous, but achievable manner (i.e. a useful spec). -- David Roundy http://www.darcs.net ___ Haskell-prime mailing list Haskell-prime@haskell.org http://haskell.org/mailman/listinfo/haskell-prime

Re: Signals + minimal proposal (was Re: asynchronous exceptions)

2006-04-11 Thread David Roundy
interruptible by exiting), but I'm not really sure how one would go about that. -- David Roundy http://www.darcs.net ___ Haskell-prime mailing list Haskell-prime@haskell.org http://haskell.org/mailman/listinfo/haskell-prime

Re: asynchronous exceptions (was: RE: Concurrency)

2006-04-05 Thread David Roundy
thrown, but rewriting all the std library functions seems like a rather crude way of doing this. On the other hand, I suppose that this could also provide a reference implementation of asynchronous exceptions for any Haskell' that supports concurrency... -- David Roundy http://www.darcs.net

Re: Module System

2006-02-22 Thread David Roundy
behavior sounds nicer, but I'd rather there were the possibility of naming our haskell files whatever we liked. Currently, as far as I can see, we can only do this with Main, and even then there are weirdnesses in ghc because Main.hi gets generated. -- David Roundy http://www.darcs.net