4 ms·
Doesn't that have the problem that it won't get around to computing the ratio until it needs to be printed to the screen?
by SilasX 14y ago
Doesn't that have the problem that it won't get around to computing the ratio until it needs to be printed to the screen?
- tel 14y agoDepends on the semantics of the monad. If you want to control that kind of thing, you can use Strategies from Control.Concurrent. If you just want to force things, then abstract-par [1] and monad-par [2] have some pretty convenient semantics. [1] http://hackage.haskell.org/package/abstract-par/ http://hackage.haskell.org/package/abstract-par/ [2] http://hackage.haskell.org/package/monad-par/ http://hackage.haskell.org/package/monad-par/