File tree 1 file changed +3
-3
lines changed
dhall-docs/src/Dhall/Docs 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
245
245
return NoInfo
246
246
247
247
where
248
- handleRecordLike l = RecordFields . Set. fromList <$> mapM f l
248
+ handleRecordLike l = RecordFields . Set. fromList . concat <$> mapM f l
249
249
where
250
250
f (key, RecordField (Just Src {srcEnd = startPos}) val (Just Src {srcStart = endPos}) _) = do
251
251
dhallType <- infer context val
252
252
let nameSrc = makeSrcForLabel startPos endPos key
253
253
let nameDecl = NameDecl nameSrc key dhallType
254
254
Writer. tell [SourceCodeFragment nameSrc (NameDeclaration nameDecl)]
255
- return nameDecl
255
+ return [ nameDecl ]
256
256
where
257
- f _ = fileAnIssue " A `RecordField` of type `Expr Src Import` doesn't have `Just src*` "
257
+ f _ = return [ ]
258
258
259
259
fileAsText :: File -> Text
260
260
fileAsText File {.. } = foldr (\ d acc -> acc <> " /" <> d) " " (Core. components directory)
You can’t perform that action at this time.
0 commit comments