File tree 2 files changed +15
-5
lines changed
2 files changed +15
-5
lines changed Original file line number Diff line number Diff line change @@ -6,11 +6,11 @@ data TypeConstructor = DataConstructor
6
6
, ggg :: Int }
7
7
aaa :: TypeConstructor
8
8
aaa = DataConstructor
9
- { fff = " "
10
- , ggg = 0
9
+ { fff = " dfgy "
10
+ , ggg = 832
11
11
}
12
12
bbb :: TypeConstructor
13
- bbb = DataConstructor " " 0
13
+ bbb = DataConstructor " mjgp " 2994
14
14
ccc :: (Text , Int )
15
15
ccc = (fff bbb, ggg aaa)
16
16
ddd :: Num a => a -> a -> a
@@ -31,12 +31,14 @@ doBind = do unwrapped <- Just ()
31
31
return unwrapped
32
32
33
33
listCompBind :: [Char ]
34
- listCompBind = [ succ c | c <- " abc " ]
34
+ listCompBind = [ succ c | c <- " ptfx " ]
35
35
36
36
multipleClause :: Bool -> Char
37
37
multipleClause True = ' t'
38
38
multipleClause False = ' f'
39
39
40
40
-- | Recognizable docs: kpqz
41
41
documented :: Monad m => Either Int (m a )
42
- documented = Left 3
42
+ documented = Left 7518
43
+
44
+ listOfInt = [ 8391 :: Int , 6268 ]
Original file line number Diff line number Diff line change @@ -846,6 +846,10 @@ findDefinitionAndHoverTests = let
846
846
eitL40 = Position 40 28 ; kindE = [ExpectHoverText [" :: * -> * -> *\n " ]]
847
847
intL40 = Position 40 34 ; kindI = [ExpectHoverText [" :: *\n " ]]
848
848
tvrL40 = Position 40 37 ; kindV = [ExpectHoverText [" :: * -> *\n " ]]
849
+ intL41 = Position 41 20 ; litI = [ExpectHoverText [" 7518" ]]
850
+ chrL36 = Position 36 25 ; litC = [ExpectHoverText [" 't'" ]]
851
+ txtL8 = Position 8 14 ; litT = [ExpectHoverText [" \" dfgv\" " ]]
852
+ lstL43 = Position 43 12 ; litL = [ExpectHoverText [" [ 8391 :: Int, 6268 ]" ]]
849
853
in
850
854
mkFindTests
851
855
-- def hover look expect
@@ -876,6 +880,10 @@ findDefinitionAndHoverTests = let
876
880
, test no broken eitL40 kindE " kind of Either #273"
877
881
, test no broken intL40 kindI " kind of Int #273"
878
882
, test no broken tvrL40 kindV " kind of (* -> *) type variable #273"
883
+ , test no broken intL41 litI " literal Int in hover info #274"
884
+ , test no broken chrL36 litC " literal Char in hover info #274"
885
+ , test no broken txtL8 litT " literal Text in hover info #274"
886
+ , test no broken lstL43 litL " literal List in hover info #274"
879
887
]
880
888
where yes, broken :: (TestTree -> Maybe TestTree )
881
889
yes = Just -- test should run and pass
You can’t perform that action at this time.
0 commit comments