Commit 9143961e authored by Bertram Felgenhauer's avatar Bertram Felgenhauer Committed by thoughtpolice
Browse files

Document another unsafeDupablePerformIO limitation.

Signed-off-by: thoughtpolice's avatarAustin Seipp <>
parent ce74d322
......@@ -170,7 +170,10 @@ because it omits the check that the IO is only being performed by a
single thread. Hence, when you use 'unsafeDupablePerformIO',
there is a possibility that the IO action may be performed multiple
times (on a multiprocessor), and you should therefore ensure that
it gives the same results each time.
it gives the same results each time. It may even happen that one
of the duplicated IO actions is only run partially, and then interrupted
in the middle without an exception being raised. Therefore, functions
like 'bracket' cannot be used safely within 'unsafeDupablePerformIO'.
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment