Commit 9b1dbf26 authored by Simon Marlow's avatar Simon Marlow
Browse files

describe the Z-encoding for __stginit symbol names (addresses #1014)

parent 3f82e352
......@@ -214,7 +214,41 @@ int main(int argc, char *argv[])
<replaceable>M</replaceable> is
<literal>__stginit_<replaceable>M</replaceable></literal>, and
it may be declared as an external function symbol as in the
code above.</para>
code above. Note that the symbol name should be transformed
according to the Z-encoding:</para>
<tgroup cols="2" align="left" colsep="1" rowsep="1">
<para>After we've finished invoking our Haskell functions, we
can call <literal>hs_exit()</literal>, which
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