hsc2hs emits invalid OPTIONS_GHC pragmas
If I write
#define FOO "bar baz"
in my hsc code, hsc2hs emits
{-# OPTIONS_GHC -optc-DFOO="bar baz" #-}
which GHC refuses to compile.
For my local hsc2hs I didn't bother with goodForOptD
AI and have removed outOption
for "define"
key in outSpecial
altogether.
Trac metadata
Trac field | Value |
---|---|
Version | 7.0.1 |
Type | Bug |
TypeOfFailure | OtherFailure |
Priority | normal |
Resolution | Unresolved |
Component | hsc2hs |
Test case | |
Differential revisions | |
BlockedBy | |
Related | |
Blocking | |
CC | |
Operating system | |
Architecture |