Show minimal complete definitions in ghci (#10847)
authorMoritz Kiefer <moritz.kiefer@purelyfunctional.org>
Thu, 17 Sep 2015 14:02:06 +0000 (16:02 +0200)
committerThomas Miedema <thomasmiedema@gmail.com>
Thu, 17 Sep 2015 14:02:18 +0000 (16:02 +0200)
commit43eb1dc52a4d3cbba9617f5a26177b8251d84b6a
treeaa07eb3e0b02d76b6e28035ab19f3e7cdb775a78
parent8d89d80d907a7df1d455e87a382b41dc65c42140
Show minimal complete definitions in ghci (#10847)

Show the minimal complete definition on :info in ghci. They
are shown like MINIMAL pragmas in code. If the minimal complete
definition is empty or only a specific method from a class is
requested, nothing is shown.

Reviewed By: simonpj, austin, thomie

Differential Revision: https://phabricator.haskell.org/D1241
12 files changed:
compiler/iface/IfaceSyn.hs
testsuite/tests/driver/sigof01/sigof01i2.stdout
testsuite/tests/ghci/prog008/ghci.prog008.stdout
testsuite/tests/ghci/scripts/T9181.stdout
testsuite/tests/ghci/scripts/ghci008.stdout
testsuite/tests/ghci/scripts/ghci025.stdout
testsuite/tests/indexed-types/should_compile/T3017.stderr
testsuite/tests/rename/should_fail/rnfail055.stderr
testsuite/tests/roles/should_compile/Roles14.stderr
testsuite/tests/roles/should_compile/Roles3.stderr
testsuite/tests/roles/should_compile/Roles4.stderr
testsuite/tests/typecheck/should_compile/tc231.stderr