[Haskell-cafe] ANNOUNCE: approximate-equality 1.0 -- Newtype wrappers for approximate equality

Gregory Crosswhite gcross at phys.washington.edu
Tue Aug 3 12:52:34 EDT 2010


  On 8/3/10 3:27 AM, Neil Brown wrote:
> So you can get the same function without needing to add a type-class.  
> Or is it that you envisage other tolerance specifications besides 
> Digit?  If so, I wonder if this flexibility complicates your API 
> unnecessarily.  If you removed those type-classes and just stuck with 
> Digits, the size of your API documentation would halve, and make the 
> docs a lot more readable.
Yes, I wanted to give the user the ability to create their own tolerance 
specifications.  I figured that it was better to make it possible to do 
this within this library then to force the user to roll their own 
library if they turned out to need this functionality.

Cheers,
Greg

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.haskell.org/pipermail/haskell-cafe/attachments/20100803/f01b463c/attachment.html


More information about the Haskell-Cafe mailing list