File tree 1 file changed +14
-0
lines changed 1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -1520,6 +1520,20 @@ extendImportTests = testGroup "extend import actions"
1520
1520
, " import ModuleA as A (stuffB, (.*))"
1521
1521
, " main = print (stuffB .* stuffB)"
1522
1522
])
1523
+ , testSession " extend single line import with infix constructor" $ template
1524
+ []
1525
+ (" ModuleB.hs" , T. unlines
1526
+ [ " module ModuleB where"
1527
+ , " import Data.List.NonEmpty (fromList)"
1528
+ , " main = case (fromList []) of _ :| _ -> pure ()"
1529
+ ])
1530
+ (Range (Position 2 5 ) (Position 2 6 ))
1531
+ [" Add NonEmpty((:|)) to the import list of Data.List.NonEmpty" ]
1532
+ (T. unlines
1533
+ [ " module ModuleB where"
1534
+ , " import Data.List.NonEmpty (fromList, NonEmpty ((:|)))"
1535
+ , " main = case (fromList []) of _ :| _ -> pure ()"
1536
+ ])
1523
1537
, testSession " extend single line import with type" $ template
1524
1538
[(" ModuleA.hs" , T. unlines
1525
1539
[ " module ModuleA where"
You can’t perform that action at this time.
0 commit comments