diff options
author | Alex Biehl <alexbiehl@gmail.com> | 2017-06-23 14:44:41 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-06-23 14:44:41 +0200 |
commit | cf7addb983bd2079b221199f8ec09c8edaeb8956 (patch) | |
tree | 4ffdbcd223cd5727f8bc72b77c15bf04780ada7e /html-test/src/PR643.hs | |
parent | d5d8cd1722b06f17155e830f2242a073b0a983eb (diff) |
Lookup fixities for reexports without subordinates (#642)
So we agree that reexported declarations which do not have subordinates (for example top-level functions) shouldn't have gotten fixities reexported according to the current logic. I wondered why for example Prelude.($) which is obviously reexported from GHC.Base has fixities attached (c.f. http://hackage.haskell.org/package/base-4.9.1.0/docs/Prelude.html#v:-36-).
The reason is this: In mkMaps we lookup all the subordinates of top-level declarations, of course top-level functions don't have subordinates so for them the resulting list is empty. In #644 I established the invariant that there won't be any empty lists in the subordinate map. Without the patch from #642 top-level functions now started to fail reexporting their fixities.
Diffstat (limited to 'html-test/src/PR643.hs')
0 files changed, 0 insertions, 0 deletions