Skip to content

Commit dca1311

Browse files
committed
Add a signature help test for type constraint with kind signatures
1 parent 3dc1ec8 commit dca1311

File tree

1 file changed

+10
-0
lines changed
  • plugins/hls-signature-help-plugin/test

1 file changed

+10
-0
lines changed

plugins/hls-signature-help-plugin/test/Main.hs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,16 @@ main =
135135
Just $ SignatureHelp [SignatureInformation "f :: forall a. Num a => a -> a -> a" Nothing (Just [ParameterInformation (InR (24,25)) Nothing, ParameterInformation (InR (29,30)) Nothing]) (Just (InL 0))] (Just 0) (Just (InL 0)),
136136
Just $ SignatureHelp [SignatureInformation "f :: forall a. Num a => a -> a -> a" Nothing (Just [ParameterInformation (InR (24,25)) Nothing, ParameterInformation (InR (29,30)) Nothing]) (Just (InL 1))] (Just 0) (Just (InL 1))
137137
],
138+
mkTest
139+
"type constraint with kind signatures"
140+
[trimming|
141+
x :: IO Bool
142+
x = pure True
143+
^ ^
144+
|]
145+
[ Nothing,
146+
Just $ SignatureHelp [SignatureInformation "pure :: forall (f :: Type -> Type) a. Applicative f => a -> f a" Nothing (Just [ParameterInformation (InR (55,56)) Nothing]) (Just (InL 0))] (Just 0) (Just (InL 0))
147+
],
138148
mkTest
139149
"dynamic function"
140150
[trimming|

0 commit comments

Comments
 (0)