Closed wisnesky closed 5 years ago
@wisnesky Yeah, doing I/O in IO
is what I meant; but in that case we'll get to that. (That said, generally speaking, it may (?) be helpful to start doing that sooner rather than later.) Also, it sounds like there may be evaluations that must be in IO
, and perhaps evaluations that wouldn't need to? As we move into IO
it'd be nice to be as 'pure' as possible here.
I looked for a timeout :: Int -> a -> a function but couldn’t find one. You’re welcome to change this if you can. Eventually, evaluation of expressions will move to the IO monad due to e.g. SQL database access or need for high-performance in-memeory data structures.