You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: plugins/hls-pragmas-plugin/test/Main.hs
+9-9Lines changed: 9 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -47,14 +47,14 @@ codeActionTests =
47
47
, codeActionTest "Pragma then line haddock then newline line comment splits line""PragmaThenLineHaddockNewlineLineComment" [("Add \"TupleSections\"", "Contains TupleSections code action")]
48
48
, codeActionTest "does not add pragma after OPTIONS_GHC pragma located after a declaration""OptionsGhcAfterDecl" [("Add \"TupleSections\"", "Contains TupleSections code action")]
49
49
, codeActionTest "adds LANGUAGE with no other pragmas at start ignoring later INLINE pragma""AddPragmaIgnoreInline" [("Add \"TupleSections\"", "Contains TupleSections code action")]
50
-
, onlyWorkForGhcVersions (>GHC94) ghc94regression $codeActionTest "adds LANGUAGE before Doc comments after interchanging pragmas""BeforeDocInterchanging" [("Add \"NamedFieldPuns\"", "Contains NamedFieldPuns code action")]
50
+
, codeActionTest "adds LANGUAGE before Doc comments after interchanging pragmas""BeforeDocInterchanging" [("Add \"NamedFieldPuns\"", "Contains NamedFieldPuns code action")]
51
51
, codeActionTest "Add language after altering OPTIONS_GHC and Language""AddLanguagePragmaAfterInterchaningOptsGhcAndLangs" [("Add \"TupleSections\"", "Contains TupleSections code action")]
52
52
, codeActionTest "Add language after pragmas with non standard space between prefix and name""AddPragmaWithNonStandardSpacingInPrecedingPragmas" [("Add \"TupleSections\"", "Contains TupleSections code action")]
53
53
, codeActionTest "adds LANGUAGE after OptGHC at start ignoring later INLINE pragma""AddPragmaAfterOptsGhcIgnoreInline" [("Add \"TupleSections\"", "Contains TupleSections code action")]
54
-
, onlyWorkForGhcVersions (>GHC94) ghc94regression $codeActionTest "adds LANGUAGE ignore later Ann pragma""AddPragmaIgnoreLaterAnnPragma" [("Add \"BangPatterns\"", "Contains BangPatterns code action")]
55
-
, onlyWorkForGhcVersions (>GHC94) ghc94regression $codeActionTest "adds LANGUAGE after interchanging pragmas ignoring later Ann pragma""AddLanguageAfterInterchaningIgnoringLaterAnn" [("Add \"BangPatterns\"", "Contains BangPatterns code action")]
56
-
, onlyWorkForGhcVersions (>GHC94) ghc94regression $codeActionTest "adds LANGUAGE after OptGHC preceded by another language pragma""AddLanguageAfterLanguageThenOptsGhc" [("Add \"NamedFieldPuns\"", "Contains NamedFieldPuns code action")]
57
-
, onlyWorkForGhcVersions (>GHC94) ghc94regression $codeActionTest "adds LANGUAGE pragma after shebang and last language pragma""AfterShebangAndPragma" [("Add \"NamedFieldPuns\"", "Contains NamedFieldPuns code action")]
54
+
, codeActionTest "adds LANGUAGE ignore later Ann pragma""AddPragmaIgnoreLaterAnnPragma" [("Add \"BangPatterns\"", "Contains BangPatterns code action")]
55
+
, codeActionTest "adds LANGUAGE after interchanging pragmas ignoring later Ann pragma""AddLanguageAfterInterchaningIgnoringLaterAnn" [("Add \"BangPatterns\"", "Contains BangPatterns code action")]
56
+
, codeActionTest "adds LANGUAGE after OptGHC preceded by another language pragma""AddLanguageAfterLanguageThenOptsGhc" [("Add \"NamedFieldPuns\"", "Contains NamedFieldPuns code action")]
57
+
, codeActionTest "adds LANGUAGE pragma after shebang and last language pragma""AfterShebangAndPragma" [("Add \"NamedFieldPuns\"", "Contains NamedFieldPuns code action")]
58
58
, codeActionTest "adds above module keyword on first line""ModuleOnFirstLine" [("Add \"TupleSections\"", "Contains TupleSections code action")]
59
59
, codeActionTest "adds LANGUAGE pragma after GHC_OPTIONS""AfterGhcOptions" [("Add \"TupleSections\"", "Contains TupleSections code action")]
60
60
, codeActionTest "adds LANGUAGE pragma after shebang and GHC_OPTIONS""AfterShebangAndOpts" [("Add \"TupleSections\"", "Contains TupleSections code action")]
@@ -63,9 +63,9 @@ codeActionTests =
63
63
, codeActionTest "adds LANGUAGE pragma after all others ignoring multiple later INLINE pragma""AfterAllWithMultipleInlines" [("Add \"TupleSections\"", "Contains TupleSections code action")]
64
64
, codeActionTest "adds LANGUAGE pragma correctly ignoring later INLINE pragma""AddLanguagePragma" [("Add \"TupleSections\"", "Contains TupleSections code action")]
0 commit comments