File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
src/Language/PureScript/Bridge Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -124,10 +124,12 @@ typesToImportLines :: ImportLines -> [PSType] -> ImportLines
124124typesToImportLines = foldr typeToImportLines
125125
126126typeToImportLines :: PSType -> ImportLines -> ImportLines
127- typeToImportLines t = if not (T. null (_typeModule t))
128- then Map. alter (Just . updateLine) (_typeModule t)
129- else id
127+ typeToImportLines t ls = typesToImportLines (update ls) (_typeParameters t)
130128 where
129+ update = if not (T. null (_typeModule t))
130+ then Map. alter (Just . updateLine) (_typeModule t)
131+ else id
132+
131133 updateLine Nothing = ImportLine (_typeModule t) (Set. singleton (_typeName t))
132134 updateLine (Just (ImportLine m types)) = ImportLine m $ Set. insert (_typeName t) types
133135
You can’t perform that action at this time.
0 commit comments