To my
>> Panic! ...
>> #define C CRP
>> data R a = CRP a
>> f (C x) = x
>> f' (C x) = x
>>
>> f compiles and f' do not!
Simon Marlow writes
> works fine here:
...
> ... Data constructor not in scope: `C'
>
> What version of gcc are you using?
I am sorry for confusion.
ghc does not panic. And, probably, compiles right (?).
This is me who panics.
Because i do not know how to use #define directive in the programs
that contain the names like f', f'gh, ...
For i expected above cpp to replace C with CRP before compilation.
And it cannot do this due to (') usage - right?
It looks like cpp expects (') to be closed by another ('), otherwise
it is a cpp error.
But why many other modules with quoted names pass through ghc -c -cpp
all right?
Generally, who knows, what is the "standard" way for the Haskell
implementation to work with cpp?
------------------
Sergey Mechveliani
[EMAIL PROTECTED]