File tree 2 files changed +3
-3
lines changed
src/Development/IDE/Plugin
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -541,7 +541,7 @@ suggestExportUnusedTopBinding srcOpt ParsedModule{pm_parsed_source = L _ HsModul
541
541
$ hsmodDecls
542
542
, Just pos <- fmap _end . getLocatedRange =<< hsmodExports
543
543
, Just needComma <- needsComma source <$> hsmodExports
544
- , let exportName = (if needComma then " ," else " " ) <> printExport exportType name
544
+ , let exportName = (if needComma then " , " else " " ) <> printExport exportType name
545
545
insertPos = pos {_character = pred $ _character pos}
546
546
= [(" Export ‘" <> name <> " ’" , TextEdit (Range insertPos insertPos) exportName)]
547
547
| otherwise = []
Original file line number Diff line number Diff line change @@ -3367,7 +3367,7 @@ exportUnusedTests = testGroup "export unused actions"
3367
3367
" Export ‘bar’"
3368
3368
(Just $ T. unlines
3369
3369
[ " {-# OPTIONS_GHC -Wunused-top-binds #-}"
3370
- , " module A (foo,bar) where"
3370
+ , " module A (foo, bar) where"
3371
3371
, " foo = id"
3372
3372
, " bar = foo" ])
3373
3373
, testSession " multi line explicit exports" $ template
@@ -3384,7 +3384,7 @@ exportUnusedTests = testGroup "export unused actions"
3384
3384
[ " {-# OPTIONS_GHC -Wunused-top-binds #-}"
3385
3385
, " module A"
3386
3386
, " ("
3387
- , " foo,bar) where"
3387
+ , " foo, bar) where"
3388
3388
, " foo = id"
3389
3389
, " bar = foo" ])
3390
3390
, testSession " export list ends in comma" $ template
You can’t perform that action at this time.
0 commit comments