Improve suggestion for misspelled flag including '=' (fixes #11789)
authorDaishi Nakajima <nakaji.dayo@gmail.com>
Wed, 18 Jan 2017 21:23:55 +0000 (16:23 -0500)
committerBen Gamari <ben@smart-cactus.org>
Wed, 18 Jan 2017 22:39:48 +0000 (17:39 -0500)
commit181688abae5c0b32237a5bd783dfc9667641cce2
treef54bf73606eb4315ac4bf1d970af64d0c8c42208
parent852c6a09f8ac21c3e843e64dfa7c6382073eb5ce
Improve suggestion for misspelled flag including '=' (fixes #11789)

Test Plan:
Added 2 test cases, verified that  ghc can suggest in the following
cases:

  - for misspelled flag containing '=', ghc suggests flags that doesn't
    contain '='
  - for misspelled flag containing '=', ghc suggests flags that
    contains '='

Reviewers: austin, dfeuer, bgamari

Reviewed By: dfeuer, bgamari

Subscribers: dfeuer, mpickering, thomie

Differential Revision: https://phabricator.haskell.org/D2978

GHC Trac Issues: #11789
ghc/Main.hs
testsuite/tests/driver/should_fail/T11789a.hs [new file with mode: 0644]
testsuite/tests/driver/should_fail/T11789a.stderr [new file with mode: 0644]
testsuite/tests/driver/should_fail/T11789b.hs [new file with mode: 0644]
testsuite/tests/driver/should_fail/T11789b.stderr [new file with mode: 0644]
testsuite/tests/driver/should_fail/all.T