@@ -420,8 +420,9 @@ p_hsLocalBinds = \case
420420 -- NOTE When in a single-line layout, there is a chance that the inner
421421 -- elements will also contain semicolons and they will confuse the
422422 -- parser. so we request braces around every element except the last.
423+ br <- vlayout (return useBraces) (return id)
423424 sitcc $ sepSemi
424− (\(m, i) -> (if m then useBraces else id) $ p_item i)
425+ (\(m, i) -> (if m then br else id) $ p_item i)
425426 (markInit $ sortOn ssStart items)
426427 HsValBinds NoExt _ -> notImplemented "HsValBinds"
427428 HsIPBinds NoExt (IPBinds NoExt xs) ->