diff options
author | Sebastian Graf <sebastian.graf@kit.edu> | 2020-08-12 18:35:28 +0200 |
---|---|---|
committer | Marge Bot <ben+marge-bot@smart-cactus.org> | 2020-09-10 10:35:33 -0400 |
commit | 67ce72da1689058cb689ffbb6fcbd5cd12af56df (patch) | |
tree | 694ee73ed29fc5953b1cc2f57c72f0761c8ad5dc /compiler/GHC/HsToCore/Match.hs-boot | |
parent | 4798caa0fefd7adf4c5b85fa84a6f28fcc6b350b (diff) | |
download | haskell-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-boot | 1 |
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 |