diff options
author | Ryan Scott <ryan.gl.scott@gmail.com> | 2019-03-04 09:52:14 -0500 |
---|---|---|
committer | Marge Bot <ben+marge-bot@smart-cactus.org> | 2019-03-06 16:05:45 -0500 |
commit | 78dd04f9126dc5df966070b8db4b39a517a9d99f (patch) | |
tree | 151aeab576581094c09d293a0f4157fcb3e8521b /.appveyor.sh | |
parent | a4944d8d98770b869f6aa5fb667877c56c3f8825 (diff) | |
download | haskell-78dd04f9126dc5df966070b8db4b39a517a9d99f.tar.gz |
Fix #16385 by appending _maybe to a use of lookupGlobalOcc
`instance forall c. c` claimed that `c` was out of scope because the
renamer was invoking `lookupGlobalOcc` on `c` (in
`RnNames.getLocalNonValBinders`) without binding `c` first. To avoid
this, this patch changes GHC to invoke `lookupGlobalOcc_maybe` on `c`
instead, and if that returns `Nothing`, then bail out, resulting
in a better error message.
Diffstat (limited to '.appveyor.sh')
0 files changed, 0 insertions, 0 deletions