Marshalling Haskell String <-> UTF-8

Simon Marlow simonmar at microsoft.com
Thu Sep 2 11:39:39 EDT 2004


On 02 September 2004 11:36, Ross Paterson wrote:

> On Wed, Sep 01, 2004 at 04:39:30PM -0700, John Meacham wrote:
>> I should mention I have a new version of the CWString library in
>> development that conforms to the new FFI spec and works on all posixy
>> systems, not just those that have unicode wchar_t's like my first
>> posting. 
>> 
>> It is not quite ready for release, but if there is a strong need I
>> can package it up nicely.
> 
> The most useful packaging would be as a patch against the HEAD version
> of fptools/libraries/base/Foreign/C/String.hs
> 
> There may also be a difficulty in that you may require hsc2hs but I
> think Simon wants to keep it out of low-level modules (?).

Yes, using hsc2hs in libraries/base is problematic for bootstrapping
reasons - it adds inconvenient extra steps to the process of
bootstrapping GHC on a new platform, so please avoid it.  Outside of the
libraries required for building GHC, hsc2hs is fair game.

Cheers,
	Simon


More information about the Glasgow-haskell-users mailing list