
19 Nov
2009
19 Nov
'09
3:21 p.m.
Maurício CA wrote:
My only complaint is that the macros get confused if you use a Haskell type that has a single quote in it.
Can you give me an example?
It turns out that I read the documentation incorrectly, but here is what
I was trying to do.
I had two structs, one of which used the other as a field type. I was
using the generated identifier of the first as the type for the second,
so it had the form c'STRUCT_NAME. So the field macro looked like this:
#field foo , c'STRUCT_NAME
It did not like this, complaining about the single quote.
I have since noticed the