Skip to content

Commit 727d28a

Browse files
committed
parenthise pattern export if needed
1 parent 87b4d95 commit 727d28a

File tree

1 file changed

+1
-1
lines changed
  • plugins/hls-refactor-plugin/src/Development/IDE/Plugin

1 file changed

+1
-1
lines changed

plugins/hls-refactor-plugin/src/Development/IDE/Plugin/CodeAction.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -769,7 +769,7 @@ suggestExportUnusedTopBinding srcOpt ParsedModule{pm_parsed_source = L _ HsModul
769769

770770
printExport :: ExportsAs -> T.Text -> T.Text
771771
printExport ExportName x = parenthesizeIfNeeds False x
772-
printExport ExportPattern x = "pattern " <> x
772+
printExport ExportPattern x = "pattern " <> parenthesizeIfNeeds False x
773773
printExport ExportFamily x = parenthesizeIfNeeds True x
774774
printExport ExportAll x = parenthesizeIfNeeds True x <> "(..)"
775775

0 commit comments

Comments
 (0)