Skip to content
Snippets Groups Projects
Commit 06f7db40 authored by Teo Camarasu's avatar Teo Camarasu Committed by Marge Bot
Browse files

doc: Fix type error in hs_try_putmvar example

parent 7eab4e01
No related branches found
No related tags found
No related merge requests found
......@@ -998,7 +998,7 @@ the data. We can do it like this:
sp <- newStablePtrPrimMVar mvar
fp <- mallocForeignPtr
withForeignPtr fp $ \presult -> do
cap <- threadCapability =<< myThreadId
(cap, _) <- threadCapability =<< myThreadId
scheduleCallback sp cap presult
takeMVar mvar `onException`
forkIO (do takeMVar mvar; touchForeignPtr fp)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment