convert_libraries chokes on Posix.hsc

Simon Marlow simonmar@microsoft.com
Mon, 14 Oct 2002 12:48:37 +0100


> [redirected to cvs-hugs]
>=20
> On Sat, Oct 12, 2002 at 08:54:39PM +0100, Ross Paterson wrote:
> > This also raises the issue that Posix.hsc makes the Hugs=20
> build depend
> > on a GHC installation.  The script already avoids depending on happy
> > to convert *.ly by using the corresponding .hs file if=20
> available, and
> > the rpm source bundle contains a converted=20
> Language/Haskell/Parser.hs.
> > I'll do the same for *.hsc and Text/Regex/Posix.hsc.
>=20
> On second thoughts, this is a bad idea: the output of hsc2hs is
> system-dependent.  I guess you either build with a GHC installation
> or Text.Regex.Posix, Text.Regex and Network.URI are broken.

You can ship the _hsc_make.c output from hsc2hs, which is
platform-independent and just needs to be compiled & run with a C
compiler to generate the .hs.  Use hsc2hs with the --no-compile option
to get the _hsc_make.c file.

Cheers,
	SImon