File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
dhall-docs/src/Dhall/Docs Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -245,16 +245,16 @@ fragments = Data.List.sortBy sorter . removeUnusedDecls . Writer.execWriter . in
245245 return NoInfo
246246
247247 where
248- handleRecordLike l = RecordFields . Set. fromList <$> mapM f l
248+ handleRecordLike l = RecordFields . Set. fromList . concat <$> mapM f l
249249 where
250250 f (key, RecordField (Just Src {srcEnd = startPos}) val (Just Src {srcStart = endPos}) _) = do
251251 dhallType <- infer context val
252252 let nameSrc = makeSrcForLabel startPos endPos key
253253 let nameDecl = NameDecl nameSrc key dhallType
254254 Writer. tell [SourceCodeFragment nameSrc (NameDeclaration nameDecl)]
255- return nameDecl
255+ return [ nameDecl ]
256256 where
257- f _ = fileAnIssue " A `RecordField` of type `Expr Src Import` doesn't have `Just src*` "
257+ f _ = return [ ]
258258
259259fileAsText :: File -> Text
260260fileAsText File {.. } = foldr (\ d acc -> acc <> " /" <> d) " " (Core. components directory)
You can’t perform that action at this time.
0 commit comments