Hacker News new | ask | show | jobs
by SilasX 4823 days 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?
1 comments

Depends 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/ [2] http://hackage.haskell.org/package/monad-par/