Skip to content

Commit b0d5551

Browse files
committed
Add missing comment
1 parent 1e8ef26 commit b0d5551

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/Language/PureScript/CoreFn/Desugar.hs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,11 @@ moduleToCoreFn env (A.Module mn decls (Just exps)) =
4949
moduleToCoreFn _ (A.Module{}) =
5050
error "Module exports were not elaborated before moduleToCoreFn"
5151

52+
-- |
53+
-- Find module names from qualified references to values. This is used to
54+
-- ensure instances are imported from any module that is referenced by the
55+
-- current module, not just from those that are imported explicitly (#667).
56+
--
5257
findQualModules :: [A.Declaration] -> [ModuleName]
5358
findQualModules decls =
5459
let (f, _, _, _, _) = everythingOnValues (++) (const []) fqValues (const []) (const []) (const [])

0 commit comments

Comments
 (0)