RE: Preprocessors (was: state of the cabal (preprocessors))

20 Oct
2004
20 Oct
'04
7:13 a.m.
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@haskell.org too. Cheers, Simon
7520
Age (days ago)
7520
Last active (days ago)
0 comments
1 participants
participants (1)
-
Simon Marlow