Ticket #4380 (closed bug: fixed)
Use throwIO instead of throw in an IO context
|Reported by:||basvandijk||Owned by:||simonmar|
|Type of failure:||None/Unknown||Difficulty:|
|Test Case:||Blocked By:|
Some functions in base use throw where the type of the expression is IO. I think they should be using throwIO since it guarantees ordering with respect to other IO actions.
See the thread on the libraries list.
Some simple benchmarks in the thread also showed that throwIO is faster than throw.