[Haskell-cafe] [Haskell] ANNOUNCE: system-filepath 0.4.5 and system-fileio 0.3.4

John Meacham john at repetae.net
Wed Feb 8 03:26:48 CET 2012

On Tue, Feb 7, 2012 at 4:24 AM, Simon Marlow <marlowsd at gmail.com> wrote:
> Separately the unix package added support for undecoded FilePaths
> (RawFilePath), but unfortunately at the same time we started using a new
> extension in GHC 7.4.1 (CApiFFI), which we decided not to document because
> it was still experimental:

Hi, from my reading, it looks like 'capi' means from a logical perspective,

"Don't assume the object is addressible, but rather that the standard c syntax
for calling this routine will expand into correct code when compiled with the
stated headers"

So, it may be implemented by say creating a stub .c file that includes the
 headers and creates a wrapper around each one or when compiling via C,
actually including the given headers and the function calls in the code.

I ask because jhc needs such a feature (very hacky method used now,
the rts knows some problematic functions and includes hacky wrappers
and #defines.) and I'll make it behave just like the ghc one when possible.


More information about the Haskell-Cafe mailing list