On Jun 5, 2012, at 9:38 AM, Johan Tibell wrote:
> You want to perform your test as
> 
>    d1 - d2 < epsilon

What's the best way to do this though, since aeson's Value type already 
provides instance Eq? I guess I can write my own suite of equality comparisons, 
but these aeson values are the leaves of an extensive grammar and it seems a 
shame to mimic everything that Eq does (without the benefits of deriving) just 
to compare doubles differently. 
_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to