[Haskell-cafe] does try force evaluation of IO value
Roman Cheplyaka
roma at ro-che.info
Fri Oct 5 12:33:44 CEST 2012
* s9gf4ult at gmail.com <s9gf4ult at gmail.com> [2012-10-05 16:02:03+0600]
> if i have some lazy io action, assuming (maction :: IO a) which may raise
> exceptions while running, will "try" force evaluation of "a" to determine is
> exception raised or not ?
> Sorry for my broken english.
No, it won't force the return value. To do that, use evaluate
http://hackage.haskell.org/packages/archive/base/latest/doc/html/Control-Exception-Base.html#g:7
Roman
More information about the Haskell-Cafe
mailing list