
5 Jun
2012
5 Jun
'12
12:51 p.m.
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.