From 4d13f3e61e4dc3aaa169bad0b8d67e8256624aee Mon Sep 17 00:00:00 2001 From: Simon Marlow Date: Tue, 9 Dec 2008 16:43:22 +0000 Subject: [PATCH] Document hs_init() infelicity (#2863) --- docs/users_guide/bugs.xml | 18 ++++++++++++++++++ docs/users_guide/ffi-chap.xml | 3 ++- 2 files changed, 20 insertions(+), 1 deletion(-) diff --git a/docs/users_guide/bugs.xml b/docs/users_guide/bugs.xml index 4d79d24..7fd47c9 100644 --- a/docs/users_guide/bugs.xml +++ b/docs/users_guide/bugs.xml @@ -298,6 +298,24 @@ checking for duplicates. The reason for this is efficiency, pure and simple. + + + Divergence from the FFI specification + + + + hs_init() not allowed + after hs_exit() + + The FFI spec requires the implementation to support + re-initialising itself after being shut down + with hs_exit(), but GHC does not + currently support that. + + + + + diff --git a/docs/users_guide/ffi-chap.xml b/docs/users_guide/ffi-chap.xml index a016f10..358c5a8 100644 --- a/docs/users_guide/ffi-chap.xml +++ b/docs/users_guide/ffi-chap.xml @@ -251,7 +251,8 @@ int main(int argc, char *argv[]) hs_exit()The outermost hs_exit() will actually de-initialise the system. NOTE that currently GHC's runtime cannot reliably - re-initialise after this has happened. + re-initialise after this has happened, + see . . NOTE: when linking the final program, it is normally -- 1.7.10.4