File tree Expand file tree Collapse file tree 1 file changed +1
-2
lines changed
plugins/hls-explicit-record-fields-plugin/src/Ide/Plugin Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Original file line number Diff line number Diff line change @@ -577,9 +577,8 @@ getRecCons expr@(unLoc -> app@(HsApp _ _ _)) =
577
577
[ RecordInfoApp realSpan' appExpr | RealSrcSpan realSpan' _ <- [ getLoc expr ] ]
578
578
579
579
getFields :: HsExpr GhcTc -> [LHsExpr GhcTc ] -> Maybe RecordAppExpr
580
- getFields (HsApp _ (unLoc -> (XExpr (ConLikeTc (conLikeFieldLabels -> fls) _ _))) _) _
581
- | null fls = Nothing
582
580
getFields (HsApp _ constr@ (unLoc -> (XExpr (ConLikeTc (conLikeFieldLabels -> fls) _ _))) arg) args
581
+ | not (null fls)
583
582
= Just (RecordAppExpr constr labelWithArgs)
584
583
where labelWithArgs = zipWith mkLabelWithArg fls (arg : args)
585
584
mkLabelWithArg label arg = (L (getLoc arg) label, unLoc arg)
You can’t perform that action at this time.
0 commit comments