RE: convert_libraries chokes on Posix.hsc

[redirected to cvs-hugs]
On Sat, Oct 12, 2002 at 08:54:39PM +0100, Ross Paterson wrote:
This also raises the issue that Posix.hsc makes the Hugs build depend on a GHC installation. The script already avoids depending on happy to convert *.ly by using the corresponding .hs file if available, and the rpm source bundle contains a converted Language/Haskell/Parser.hs. I'll do the same for *.hsc and Text/Regex/Posix.hsc.
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
participants (1)
-
Simon Marlow