Proposal: Better power for Rational

Simon Peyton-Jones simonpj at microsoft.com
Sun Sep 26 14:39:39 EDT 2010


If the change is adopted, could the design rational (including why Rational-only) be included as a comment?  It's so easily lost!

Simon

|  -----Original Message-----
|  From: libraries-bounces at haskell.org [mailto:libraries-bounces at haskell.org] On Behalf
|  Of Ian Lynagh
|  Sent: 25 September 2010 16:03
|  To: libraries at haskell.org
|  Subject: Re: Proposal: Better power for Rational
|  
|  On Sat, Sep 25, 2010 at 03:36:42PM +0200, Daniel Fischer wrote:
|  >
|  > I'm not principally against changing that behaviour, but changing the
|  > results of functions is a big undertaking versus just improving
|  > performance.
|  
|  Oh, but as this is done with a rule rather than a class method, it would
|  make the result non-deterministic, depending on whether the rule fires.
|  So yes, restricting it to Rational sounds like the right thing to do.
|  
|  
|  Thanks
|  Ian
|  
|  _______________________________________________
|  Libraries mailing list
|  Libraries at haskell.org
|  http://www.haskell.org/mailman/listinfo/libraries



More information about the Libraries mailing list