Commit b29ec9fc authored by Simon Marlow's avatar Simon Marlow
Browse files

add finalizeForeignPtr

parent a479e159
......@@ -314,7 +314,6 @@ haddock :
sed 's/instance\(\\ [^\]*\)*\\ P\($$\|\\\\\)//g' | \
sed 's/instance\\ Typeable\(1\|\)\(\\ [^\]*\)*\($$\|\\\\\)//g' | \
sed 's/instance\\ Exception\(\\ [^\]*\)*\($$\|\\\\\)//g' | \
sed 's/instance\(\\ [^\]*\)*\\ \(WordPtr\|IntPtr\)\($$\|\\\\\)//g' | \
sed 's/instance\\ (Data\(\\ [^\]*\)*\($$\|\\\\\)//g' >$$i.tmp \
&& mv $$i.tmp $$i; done
......
......@@ -5,9 +5,10 @@
module Foreign.ForeignPtr (
ForeignPtr, FinalizerPtr, FinalizerEnvPtr, newForeignPtr,
newForeignPtr_, addForeignPtrFinalizer, newForeignPtrEnv,
addForeignPtrFinalizerEnv, withForeignPtr, unsafeForeignPtrToPtr,
touchForeignPtr, castForeignPtr, mallocForeignPtr,
mallocForeignPtrBytes, mallocForeignPtrArray, mallocForeignPtrArray0
addForeignPtrFinalizerEnv, withForeignPtr, finalizeForeignPtr,
unsafeForeignPtrToPtr, touchForeignPtr, castForeignPtr,
mallocForeignPtr, mallocForeignPtrBytes, mallocForeignPtrArray,
mallocForeignPtrArray0
) where\end{verbatim}}
\haddockendheader
......@@ -135,6 +136,15 @@ This function is normally used for marshalling data to
\haddockid{Storable} class.
\par
\end{haddockdesc}
\begin{haddockdesc}
\item[\begin{tabular}{@{}l}
finalizeForeignPtr\ ::\ ForeignPtr\ a\ ->\ IO\ ()
\end{tabular}]\haddockbegindoc
Causes the finalizers associated with a foreign pointer to be run
immediately.
\par
\end{haddockdesc}
\subsection{Low-level operations
}
......
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