Show constraints when reporting typed holes
authorMaciej Bielecki <zyla@prati.pl>
Wed, 14 Dec 2016 21:43:25 +0000 (16:43 -0500)
committerBen Gamari <ben@smart-cactus.org>
Thu, 15 Dec 2016 15:42:25 +0000 (10:42 -0500)
commit0c3341b23e0672fb9c05d9f6ab0be76f411d526e
treecc8fe826571b77b5d95665058b0a294caa27142f
parent52c5e55348170f27f5ef1cb010c4c96ab4aa47cc
Show constraints when reporting typed holes

This patch implements the display of constraints in the error message
for typed holes.

Test Plan: validate, read docs

Reviewers: simonpj, austin, bgamari

Reviewed By: simonpj, bgamari

Subscribers: simonpj, thomie

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

GHC Trac Issues: #10614
compiler/main/DynFlags.hs
compiler/typecheck/TcErrors.hs
docs/users_guide/glasgow_exts.rst
testsuite/tests/typecheck/should_compile/all.T
testsuite/tests/typecheck/should_compile/hole_constraints.hs [new file with mode: 0644]
testsuite/tests/typecheck/should_compile/hole_constraints.stderr [new file with mode: 0644]
testsuite/tests/typecheck/should_compile/hole_constraints_nested.hs [new file with mode: 0644]
testsuite/tests/typecheck/should_compile/hole_constraints_nested.stderr [new file with mode: 0644]
utils/mkUserGuidePart/Options/Verbosity.hs