From: Simon Marlow Date: Tue, 9 Dec 2008 16:43:22 +0000 (+0000) Subject: Document hs_init() infelicity (#2863) X-Git-Tag: 2009-03-13~329 X-Git-Url: http://git.megacz.com/?p=ghc-hetmet.git;a=commitdiff_plain;h=4d13f3e61e4dc3aaa169bad0b8d67e8256624aee Document hs_init() infelicity (#2863) --- 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