[Haskell-cafe] Faster timeout but is it correct?

Bas van Dijk v.dijk.bas at gmail.com
Tue Feb 22 00:23:23 CET 2011


On 21 February 2011 22:11, Job Vranish <job.vranish at gmail.com> wrote:
> I'm curious, is it possible that your new timeout implementation would fix
> this problem?:
> doesntWork :: Int -> Int
> doesntWork x = last $ cycle [x]
> test :: IO (Maybe Bool)
> test = timeout 1 $ evaluate $ doesntWork 5 == 5 -- never terminates, even
> with the timeout

I just tested this with the new timeout and unfortunately it's not fixed.

Bas



More information about the Libraries mailing list