diff options
author | Simon Peyton Jones <simonpj@microsoft.com> | 2021-07-30 09:38:54 +0100 |
---|---|---|
committer | Marge Bot <ben+marge-bot@smart-cactus.org> | 2021-08-02 04:19:09 -0400 |
commit | 34e352173dd1fc3cd86c49380fda5a4eb5dd7aef (patch) | |
tree | 014808c192a3729418d3c465cb3b5b70a6a2a8db /testsuite/tests/th/T20179.stderr | |
parent | e15381842d41a79a40a64d34ae0798aff8e6a989 (diff) | |
download | haskell-34e352173dd1fc3cd86c49380fda5a4eb5dd7aef.tar.gz |
Catch type-checker exceptions when splicing
In GHC.Tc.Gen.Splice.tcTopSpliceExpr we were forgetting to
catch exceptions. As a result we missed the kind error
in the unsolved constraints.
This patch has an easy fix, which cures #20179
Diffstat (limited to 'testsuite/tests/th/T20179.stderr')
-rw-r--r-- | testsuite/tests/th/T20179.stderr | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/testsuite/tests/th/T20179.stderr b/testsuite/tests/th/T20179.stderr new file mode 100644 index 0000000000..28eb54d698 --- /dev/null +++ b/testsuite/tests/th/T20179.stderr @@ -0,0 +1,10 @@ + +T20179.hs:4:18: error: + • Expecting one more argument to ‘Maybe’ + Expected a type, but ‘Maybe’ has kind ‘* -> *’ + • In the type signature: slurmp :: [Maybe] + In the expression: + let + slurmp :: [Maybe] + slurmp = [] + in pure [] |