summaryrefslogtreecommitdiff
path: root/testsuite/tests/ghci.debugger/scripts/all.T
diff options
context:
space:
mode:
authorRoland Senn <rsx@bluewin.ch>2020-01-30 17:11:06 +0100
committerMarge Bot <ben+marge-bot@smart-cactus.org>2020-02-09 02:55:06 -0500
commit82f9be8c6aafb70f612e72bef517c76437726c78 (patch)
treecd43800e3c2f3c044a0fbb6a8583a5f881e2aaed /testsuite/tests/ghci.debugger/scripts/all.T
parent3ae83da13f03d22a4d810b5d9c0f37f818cb6a00 (diff)
downloadhaskell-82f9be8c6aafb70f612e72bef517c76437726c78.tar.gz
Fix #14628: Panic (No skolem Info) in GHCi
This patch implements the [sugggestion from Simon (PJ)](https://gitlab.haskell.org/ghc/ghc/issues/14628#note_146559): - Make `TcErrors.getSkolemInfo` return a `SkolemInfo` rather than an `Implication`. - If `getSkolemInfo` gets `RuntimeUnk`s, just return a new data constructor in `SkolemInfo`, called `RuntimeUnkSkol`. - In `TcErrors.pprSkols` print something sensible for a `RuntimeUnkSkol`. The `getSkolemInfo` function paniced while formating suggestions to add type annotations (subfunction `suggestAddSig`) to a *"Couldn't match type ‘x’ with ‘y’"* error message. The `getSkolemInfo` function didn't find any Implication value and paniced. With this patch the `getSkolemInfo` function does no longer panic, if it finds `RuntimeUnkSkol`s. As the panic occured while processing an error message, we don't need to implement any new error message!
Diffstat (limited to 'testsuite/tests/ghci.debugger/scripts/all.T')
-rw-r--r--testsuite/tests/ghci.debugger/scripts/all.T1
1 files changed, 1 insertions, 0 deletions
diff --git a/testsuite/tests/ghci.debugger/scripts/all.T b/testsuite/tests/ghci.debugger/scripts/all.T
index 297b4c2b76..01662361c4 100644
--- a/testsuite/tests/ghci.debugger/scripts/all.T
+++ b/testsuite/tests/ghci.debugger/scripts/all.T
@@ -113,6 +113,7 @@ test('T13825-debugger',
[when(arch('powerpc64'), expect_broken(14455)),
when(arch('arm'), fragile_for(17557, ['ghci-ext']))],
ghci_script, ['T13825-debugger.script'])
+test('T14628', normal, ghci_script, ['T14628.script'])
test('T14690', normal, ghci_script, ['T14690.script'])
test('T16700', normal, ghci_script, ['T16700.script'])