Report better suggestion for GADT data constructor
authorSimon Peyton Jones <simonpj@microsoft.com>
Wed, 13 Mar 2019 13:27:22 +0000 (13:27 +0000)
committerMarge Bot <ben+marge-bot@smart-cactus.org>
Fri, 15 Mar 2019 14:24:01 +0000 (10:24 -0400)
commit97032ed9b2594c8939cab776ff871051d6dba30a
treef28dde903666e7be0f169857fc8037ea3a2b0ee2
parent610ec224a49e092c802a336570fd9613ea15ef3c
Report better suggestion for GADT data constructor

This addresses issue #16427. An easy fix.
compiler/typecheck/TcTyClsDecls.hs
testsuite/tests/gadt/T12087.stderr
testsuite/tests/gadt/T16427.hs [new file with mode: 0644]
testsuite/tests/gadt/T16427.stderr [new file with mode: 0644]
testsuite/tests/gadt/all.T