#4931: hsc2hs emits invalid OPTIONS_GHC pragmas
---------------------------------+------------------------------------------
Reporter: awson | Owner:
Type: bug | Status: new
Priority: normal | Component: hsc2hs
Version: 7.0.1 | Keywords:
Testcase: | Blockedby:
Os: Unknown/Multiple | Blocking:
Architecture: Unknown/Multiple | Failure: None/Unknown
---------------------------------+------------------------------------------
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.
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/4931>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs