Re: cpphs (was Re: Haskell on Red Hat Enterprise...)

2005-03-18 Thread Malcolm Wallace
Andy Moran <[EMAIL PROTECTED]> writes: > -- hackery to convice cpp to splice GHC_PKG_VERSION into a string > version :: String > version = tail "\ > \ GHC_PKG_VERSION" OK, it turns out that this is pretty tricky to do in cpp, even with full scope of -ansi or -traditional behaviour. In fact,

RE: cpphs (was Re: Haskell on Red Hat Enterprise...)

2005-03-18 Thread Simon Marlow
On 17 March 2005 17:23, Malcolm Wallace wrote: > The only real issue currently preventing ghc from adopting cpphs is > ideological (GPL licensing). We've no objection to making changes to GHC to make it easy to use in conjuction with cpphs (./configure --with-cpps or whatever), so 3rd-party packa

RE: cpphs (was Re: Haskell on Red Hat Enterprise...)

2005-03-18 Thread Simon Marlow
On 17 March 2005 23:03, Andy Moran wrote: > Malcolm Wallace wrote: >> Andy Moran <[EMAIL PROTECTED]> writes: >> >>> I notice that cpphs understands CPP stringification (if invoked with >>> --hashes). Most of the gcc 3.4 failures (in fact, all of that I've >>> seen) have to do with fooling -tradit

Re: cpphs (was Re: Haskell on Red Hat Enterprise...)

2005-03-17 Thread Andy Moran
Malcolm Wallace wrote: Andy Moran <[EMAIL PROTECTED]> writes: I notice that cpphs understands CPP stringification (if invoked with --hashes). Most of the gcc 3.4 failures (in fact, all of that I've seen) have to do with fooling -traditional into turning macro constants into Haskell strings, whic

Re: cpphs (was Re: Haskell on Red Hat Enterprise...)

2005-03-17 Thread Malcolm Wallace
Andy Moran <[EMAIL PROTECTED]> writes: > I notice that cpphs understands CPP stringification (if invoked with > --hashes). Most of the gcc 3.4 failures (in fact, all of that I've seen) > have to do with fooling -traditional into turning macro constants into > Haskell strings, which can more rea

Re: cpphs (was Re: Haskell on Red Hat Enterprise...)

2005-03-17 Thread Andy Moran
Andy Moran wrote: I notice that cpphs understands CPP stringification (if invoked with --hashes). Most of the gcc 3.4 failures (in fact, all of that I've seen) have to do with fooling -traditional into turning macro constants into Haskell strings, which can more readily be done with the #-operat

Re: cpphs (was Re: Haskell on Red Hat Enterprise...)

2005-03-17 Thread Andy Moran
Malcolm Wallace wrote: Have we converged on a long-term solution for this problem? Is hscpp ready for the job? I believe cpphs is in good shape. There has been one bug report, and no new feature requests, in the last 4 months since 0.8 was released, with 235 downloads of that version. Over a sli