diff options
author | Simon Peyton Jones <simonpj@microsoft.com> | 2018-04-26 14:04:29 +0100 |
---|---|---|
committer | Simon Peyton Jones <simonpj@microsoft.com> | 2018-04-27 17:19:05 +0100 |
commit | 0c01224bb95b3c0d6730ededaf04c9ab0892e297 (patch) | |
tree | 3a31fd8cdcfcdead0465c347ce47034b6d40cff2 /compiler/rename/RnNames.hs | |
parent | 69119b2087ff6a016c2490981f01dfd72b971661 (diff) | |
download | haskell-0c01224bb95b3c0d6730ededaf04c9ab0892e297.tar.gz |
Refactor tcExtendLocalFamInst a bit
This patch just pulls out FamInst.loadDependentFamInstModules
as a separate function, and adds better comments.
Provoked by Trac #14759, comment:10.
Diffstat (limited to 'compiler/rename/RnNames.hs')
-rw-r--r-- | compiler/rename/RnNames.hs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rename/RnNames.hs b/compiler/rename/RnNames.hs index 60f87fcd1f..f06fc00db3 100644 --- a/compiler/rename/RnNames.hs +++ b/compiler/rename/RnNames.hs @@ -200,8 +200,8 @@ rnImports imports = do new_finsts = imp_finsts imp_avails1 {- -Note [Combine ImportAvails] -~~~~~~~~~~~~~~~~~~~~~~~~~~~ +Note [Combining ImportAvails] +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ imp_finsts in ImportAvails is a list of family instance modules transitively depended on by an import. imp_finsts for a currently compiled module is a union of all the imp_finsts of imports. |