Using the prettyPragma printer (in conjunction with language-c-quote, which, by the way, is very nice) results in gcc being unhappy with the #line directive:
/home/charles/machine/bin/main.cpp:62:10: error: """src" is not a valid filename
#line 64 ""src/Main.hs""
Using the prettyPragma printer (in conjunction with
language-c-quote
, which, by the way, is very nice) results in gcc being unhappy with the#line
directive:I am guessing the source of the issue is https://github.com/mainland/mainland-pretty/blob/master/Text/PrettyPrint/Mainland.hs#L697, where
shows
surrounds a string with double quotes, and then it gets quoted again.