Token concatentation (##) in C preprocessor
#define MY_MACRO(A,B) \
instance MyClass A##B where ...
MY_MACRO(Foo,Bar)
Should expand to
instance MyClass FooBar where ...
This behavior is defined in the C standard, and is quite handy. Presently GHC leaves the '##' in the expanded text.
Trac metadata
| Trac field | Value |
|---|---|
| Version | 6.8.3 |
| Type | FeatureRequest |
| TypeOfFailure | OtherFailure |
| Priority | normal |
| Resolution | Unresolved |
| Component | Compiler |
| Test case | |
| Differential revisions | |
| BlockedBy | |
| Related | |
| Blocking | |
| CC | |
| Operating system | Unknown |
| Architecture | Unknown |