Generalized sleep and timeout functions.
moduleMainwhereimportControl.Timeout (timeout, sleep)
main::IO()
main =do
timeout 1$ sleep 2-- Will return IO Nothing
timeout 2$ sleep 1-- Will return IO (Just ())return()There was an error while loading. Please reload this page.