[GHC] #4931: hsc2hs emits invalid OPTIONS_GHC pragmas

GHC ghc-devs at haskell.org
Thu Apr 2 11:32:28 UTC 2015


#4931: hsc2hs emits invalid OPTIONS_GHC pragmas
-------------------------------------+-------------------------------------
        Reporter:  awson             |                   Owner:
            Type:  bug               |                  Status:  new
        Priority:  low               |               Milestone:  7.12.1
       Component:  hsc2hs            |                 Version:  7.0.1
      Resolution:                    |                Keywords:  newcomer
Operating System:  Unknown/Multiple  |            Architecture:
 Type of failure:  None/Unknown      |  Unknown/Multiple
      Blocked By:                    |               Test Case:
 Related Tickets:                    |                Blocking:
                                     |  Differential Revisions:
-------------------------------------+-------------------------------------

Comment (by thomie):

 Yes, that could be considered a bug. If you could try fixing it, then we
 don't need to add another function. Check call sites of `toArgs` and
 `toCmdArgs` to make sure nothing breaks.

 {{{
 *Main> toArgs "a \"b c\" d"
 Right ["a","b c","d"]

 *Main> toArgs "a\"b c\" d"
 Right ["a\"b","c\"","d"]  -- * should be ["a\"b c\"", "d"] I suppose.
 }}}

--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/4931#comment:11>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler


More information about the ghc-tickets mailing list