summaryrefslogtreecommitdiff
path: root/compiler/GHC/HsToCore/Match.hs-boot
diff options
context:
space:
mode:
authorSebastian Graf <sebastian.graf@kit.edu>2020-08-12 18:35:28 +0200
committerMarge Bot <ben+marge-bot@smart-cactus.org>2020-09-10 10:35:33 -0400
commit67ce72da1689058cb689ffbb6fcbd5cd12af56df (patch)
tree694ee73ed29fc5953b1cc2f57c72f0761c8ad5dc /compiler/GHC/HsToCore/Match.hs-boot
parent4798caa0fefd7adf4c5b85fa84a6f28fcc6b350b (diff)
downloadhaskell-67ce72da1689058cb689ffbb6fcbd5cd12af56df.tar.gz
Add long-distance info for pattern bindings (#18572)
We didn't consider the RHS of a pattern-binding before, which led to surprising warnings listed in #18572. As can be seen from the regression test T18572, we get the expected output now.
Diffstat (limited to 'compiler/GHC/HsToCore/Match.hs-boot')
-rw-r--r--compiler/GHC/HsToCore/Match.hs-boot1
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/GHC/HsToCore/Match.hs-boot b/compiler/GHC/HsToCore/Match.hs-boot
index b42c84e10a..3014c069a5 100644
--- a/compiler/GHC/HsToCore/Match.hs-boot
+++ b/compiler/GHC/HsToCore/Match.hs-boot
@@ -29,6 +29,7 @@ matchSimply
matchSinglePatVar
:: Id
+ -> Maybe CoreExpr
-> HsMatchContext GhcRn
-> LPat GhcTc
-> Type