George Russell wrote:
> Simon Peyton-Jones wrote:
> > One solution is to add
> > macros (presumably in a more hygienic form than cpp), but I'm reluctant
> > to advocate that, because macros undoubtedly do overlap with functions.
> You don't need macros. (For speed purposes inline functions are obviously
> better.)
I guess you have not been in contact with the Real World (tm). :-)
If you have a program that needs to compile in say, Haskell 1.3 and Haskell 98,
then you need some kind of preprocessor. Try changing the syntax of e.g. the
export list with a boolean function.
It's a nasty business, and I'm not advocating the use of preprocessors, but
sometimes it's needed.
--
-- Lennart
- Re: CPP is not part of Haskell Manuel M. T. Chakravarty
- RE: CPP is not part of Haskell Simon Peyton-Jones
- Re: CPP is not part of Haskell George Russell
- RE: CPP is not part of Haskell Manuel M. T. Chakravarty
- RE: CPP is not part of Haskell Frank A. Christoph
- Re: CPP is not part of Haskell Manuel M. T. Chakravarty
- Re: CPP is not part of Haskell George Russell
- Re: CPP is not part of Haskell Jan Skibinski
- Re: CPP is not part of Haskell Fergus Henderson
- Re: CPP is not part of Haskell Matthias Kilian
- Re: CPP is not part of Haskell Lennart Augustsson
- Re: CPP is not part of Haskell Manuel M. T. Chakravarty
- RE: CPP is not part of Haskell Frank A. Christoph
- Re: CPP is not part of Haskell Manuel M. T. Chakravarty
- Re: CPP is not part of Haskell George Russell
- RE: CPP is not part of Haskell Manuel M. T. Chakravarty
- Re: CPP is not part of Haskell Andy Gill
- Re: CPP is not part of Haskell Fergus Henderson
