
Control.Exception.evaluate doesn't have much to do with forcing recomputation. If the argument is already in whnf, evaluate won't do anything. On 19/11/14 09:58, Christopher Allen wrote:
Looks like http://hackage.haskell.org/package/base-4.7.0.1/docs/Control-Exception.html#... ?
https://github.com/bos/criterion/blob/master/Criterion/Types.hs#L290-L295
On Wed, Nov 19, 2014 at 1:55 AM, Tom Ellis
mailto:tom-lists-haskell-cafe-2013@jaguarpaw.co.uk> wrote: On Tue, Nov 18, 2014 at 11:39:37PM -0800, Todd Wilson wrote: > For example, suppose I have a function f and two arguments e1 > and e2, and I want to compare the time it takes to compute f e1 vs. f > e2
If your purpose is benchmarking (and even if it isn't) I suggest you look at how criterion manages the issue