[Git][ghc/ghc][wip/fabu/T24452-confusing-error] That makes sense, thank you.
Fabricio Nascimento (@fabu)
gitlab at gitlab.haskell.org
Wed Jun 26 01:05:35 UTC 2024
Fabricio Nascimento pushed to branch wip/fabu/T24452-confusing-error at Glasgow Haskell Compiler / GHC
Commits:
1f574189 by Adam Gundry at 2024-06-26T01:05:31+00:00
That makes sense, thank you.
- - - - -
1 changed file:
- compiler/GHC/Rename/Env.hs
Changes:
=====================================
compiler/GHC/Rename/Env.hs
=====================================
@@ -745,7 +745,9 @@ lookupSubBndrOcc_helper must_have_parent warn_if_deprec parent rdr_name how_lkup
else mkNameClashErr $ g NE.:| gss'
mkIncorrectParentErr :: [GlobalRdrElt] -> RnM ChildLookupResult
- mkIncorrectParentErr gres = do
+ mkIncorrectParentErr gres = return $ IncorrectParent parent g
+ [p | x <- gres, ParentIs p <- [greParent x]]
+
case gres of
[] -> return NameNotFound
[g] -> return $ IncorrectParent parent g
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/1f574189f60d2fd069edf57e088c05c6638cd40e
--
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/1f574189f60d2fd069edf57e088c05c6638cd40e
You're receiving this email because of your account on gitlab.haskell.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/ghc-commits/attachments/20240625/6f560bce/attachment.html>
More information about the ghc-commits
mailing list