[Document foreign import prim in the user guide Duncan Coutts **20090704180547 Basically just stat that it exists and refer to the ghc dev wiki for the details, because we don't really want people using it. ] hunk ./docs/users_guide/ffi-chap.xml 66 + + + Primitive imports + + GHC extends the FFI with an additional calling convention + prim, e.g.: + + foreign import prim "foo" foo :: ByteArray# -> (# Int#, Int# #) + + This is used to import functions written in Cmm code that follow an + internal GHC calling convention. This feature is not intended for + use outside of the core libraries that come with GHC. For more + details see the GHC developer wiki. + +