X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=docs%2Fusers_guide%2Fffi-chap.xml;h=82f3899a76c0de7e18e0f6ce1f4aacca811653bf;hb=1b92395bcb40f110fc3dd6e261692e28e6bbe328;hp=8928ea8a7f7d5debab0f7f3b1bdc0c28b02b9ebf;hpb=a8e681c1e8aa4bc602714ff61583cd4e969d7187;p=ghc-hetmet.git
diff --git a/docs/users_guide/ffi-chap.xml b/docs/users_guide/ffi-chap.xml
index 8928ea8..82f3899 100644
--- a/docs/users_guide/ffi-chap.xml
+++ b/docs/users_guide/ffi-chap.xml
@@ -214,7 +214,41 @@ int main(int argc, char *argv[])
M is
__stginit_M, and
it may be declared as an external function symbol as in the
- code above.
+ code above. Note that the symbol name should be transformed
+ according to the Z-encoding:
+
+
+
+
+
+ Character
+ Replacement
+
+
+
+
+ .
+ zd
+
+
+ _
+ zu
+
+
+ `
+ zq
+
+
+ Z
+ ZZ
+
+
+ z
+ zz
+
+
+
+
After we've finished invoking our Haskell functions, we
can call hs_exit(), which