Fix #16282.
authorEric Crockett <ecrockett0@gmail.com>
Sun, 7 Apr 2019 19:21:59 +0000 (15:21 -0400)
committerBen Gamari <ben@well-typed.com>
Sun, 7 Apr 2019 19:21:59 +0000 (15:21 -0400)
commit3a38ea4487173f0f8e3693a75d1c5c7d33f12f05
tree45cacfc3e1071d5b34820bc9562d7b024251fc56
parent33b0a291898b6a35d822fde59864c5c94a53d039
Fix #16282.

Previously, -W(all-)missed-specs was created with 'NoReason',
so no information about the flag was printed along with the warning.
Now, -Wall-missed-specs is listed as the Reason if it was set,
otherwise -Wmissed-specs is listed as the reason.
compiler/simplCore/CoreMonad.hs
compiler/specialise/Specialise.hs
testsuite/tests/warnings/should_compile/T16282/T16282.hs [new file with mode: 0644]
testsuite/tests/warnings/should_compile/T16282/T16282.stderr [new file with mode: 0644]
testsuite/tests/warnings/should_compile/T16282/all.T [new file with mode: 0644]