Commit c9ad23b0 authored by Simon Marlow's avatar Simon Marlow

improve the finalizer callback error message

parent c59c053f
......@@ -285,7 +285,9 @@ schedule (Capability *initialCapability, Task *task)
if (running_finalizers) {
errorBelch("error: a C finalizer called back into Haskell.\n"
" use Foreign.Concurrent.newForeignPtr for Haskell finalizers.");
" This was previously allowed, but is disallowed in GHC 6.10.2 and later.\n"
" To create finalizers that may call back into Haskll, use\n"
" Foreign.Concurrent.newForeignPtr instead of Foreign.newForeignPtr.");
stg_exit(EXIT_FAILURE);
}
......
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