Skip to content
This repository was archived by the owner on Oct 7, 2020. It is now read-only.

Commit 24def8f

Browse files
committed
Add test to prove #1228 is resolved
1 parent a032d0e commit 24def8f

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

test/functional/FunctionalCodeActionsSpec.hs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,7 @@ spec = describe "code actions" $ do
145145
, " )"
146146
, "import Control.Monad ( when )"
147147
, "import Data.Maybe ( fromMaybe )"
148+
, "-- | Main entry point to the program"
148149
, "main :: IO ()"
149150
, "main ="
150151
, " when True"
@@ -169,6 +170,7 @@ spec = describe "code actions" $ do
169170
[ "import System.IO (stdout, hPutStrLn)"
170171
, "import Control.Monad (when)"
171172
, "import Data.Maybe (fromMaybe)"
173+
, "-- | Main entry point to the program"
172174
, "main :: IO ()"
173175
, "main ="
174176
, " when True"
@@ -568,6 +570,7 @@ hsImportSpec formatterName [e1, e2, e3] =
568570
[ "import System.IO (stdout, hPutStrLn)"
569571
, "import Control.Monad (when)"
570572
, "import Data.Maybe (fromMaybe)"
573+
, "-- | Main entry point to the program"
571574
, "main :: IO ()"
572575
, "main ="
573576
, " when True"

test/testdata/CodeActionImportList.hs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
-- | Main entry point to the program
12
main :: IO ()
23
main =
34
when True

0 commit comments

Comments
 (0)