Preprocessors (was: state of the cabal (preprocessors))
simonmar at microsoft.com
Wed Oct 20 07:13:09 EDT 2004
On 20 October 2004 10:22, Ketil Malde wrote:
> I've recently run into a problem using the preprocessor (ghc -cpp).
> It seems it barfs on 's (apostrophe). Annoying, since naming
> variables something-prime is a fairly common idiom.
> Is this something that has a workaround, or could be fixed?
> (The specific problem is redefining 'head' in a macro
> and using it like:
> let w' = head ... -- breaks
> One workaround is to write it as:
> let w' =
> head ... -- works
That shouldn't happen, and indeed it doesn't happen to us.
Could you provide more details: platform, GHC & GCC versions, and sample
code that exhibits the problem. Probably best to move this to
glasgow-haskell-bugs at haskell.org too.
More information about the Libraries