@@ -232,6 +232,34 @@ main =
232232 Just $ SignatureHelp [SignatureInformation " f :: forall a b. Eq a => a -> (Num b => b -> b) -> a" Nothing (Just [ParameterInformation (InR (25 ,26 )) Nothing , ParameterInformation (InR (31 ,46 )) Nothing ]) (Just (InL 0 )), SignatureInformation " f :: Integer -> (Num b => b -> b) -> Integer" Nothing (Just [ParameterInformation (InR (5 ,12 )) Nothing , ParameterInformation (InR (17 ,32 )) Nothing ]) (Just (InL 0 ))] (Just 0 ) (Just (InL 0 )),
233233 Just $ SignatureHelp [SignatureInformation " f :: forall a b. Eq a => a -> (Num b => b -> b) -> a" Nothing (Just [ParameterInformation (InR (25 ,26 )) Nothing , ParameterInformation (InR (31 ,46 )) Nothing ]) (Just (InL 0 )), SignatureInformation " f :: Integer -> (Num Any => Any -> Any) -> Integer" Nothing (Just [ParameterInformation (InR (5 ,12 )) Nothing , ParameterInformation (InR (17 ,38 )) Nothing ]) (Just (InL 0 ))] (Just 0 ) (Just (InL 0 )),
234234 Just $ SignatureHelp [SignatureInformation " f :: forall a b. Eq a => a -> (Num b => b -> b) -> a" Nothing (Just [ParameterInformation (InR (25 ,26 )) Nothing , ParameterInformation (InR (31 ,46 )) Nothing ]) (Just (InL 1 )), SignatureInformation " f :: Integer -> (Num Any => Any -> Any) -> Integer" Nothing (Just [ParameterInformation (InR (5 ,12 )) Nothing , ParameterInformation (InR (17 ,38 )) Nothing ]) (Just (InL 1 ))] (Just 0 ) (Just (InL 1 ))
235+ ],
236+ mkTest
237+ " RankNTypes(forall in middle)"
238+ [trimming |
239+ f :: Maybe a -> forall b. (a, b) -> b
240+ f = _
241+ x1 = f Nothing
242+ ^ ^
243+ x2 = f (Just True)
244+ ^
245+ x3 = f Nothing (1, True)
246+ ^
247+ |]
248+ [ Nothing ,
249+ Just $ SignatureHelp [SignatureInformation " f :: forall a. Maybe a -> forall b. (a, b) -> b" Nothing (Just [ParameterInformation (InR (15 ,22 )) Nothing , ParameterInformation (InR (36 ,42 )) Nothing ]) (Just (InL 0 )), SignatureInformation " f :: Maybe a -> forall b. (a, b) -> b" Nothing (Just [ParameterInformation (InR (5 ,12 )) Nothing , ParameterInformation (InR (26 ,32 )) Nothing ]) (Just (InL 0 ))] (Just 0 ) (Just (InL 0 )),
250+ Just $ SignatureHelp [SignatureInformation " f :: forall a. Maybe a -> forall b. (a, b) -> b" Nothing (Just [ParameterInformation (InR (15 ,22 )) Nothing , ParameterInformation (InR (36 ,42 )) Nothing ]) (Just (InL 0 )), SignatureInformation " f :: Maybe Bool -> forall b. (Bool, b) -> b" Nothing (Just [ParameterInformation (InR (5 ,15 )) Nothing , ParameterInformation (InR (29 ,38 )) Nothing ]) (Just (InL 0 ))] (Just 0 ) (Just (InL 0 )),
251+ Just $ SignatureHelp [SignatureInformation " f :: forall a. Maybe a -> forall b. (a, b) -> b" Nothing (Just [ParameterInformation (InR (15 ,22 )) Nothing , ParameterInformation (InR (36 ,42 )) Nothing ]) (Just (InL 0 )), SignatureInformation " f :: Maybe Integer -> forall b. (Integer, b) -> b" Nothing (Just [ParameterInformation (InR (5 ,18 )) Nothing , ParameterInformation (InR (32 ,44 )) Nothing ]) (Just (InL 0 ))] (Just 0 ) (Just (InL 0 ))
252+ ],
253+ mkTest
254+ " RankNTypes(forall in middle), again"
255+ [trimming |
256+ f :: a -> forall a. a -> a
257+ f = _
258+ x = f 1
259+ ^ ^
260+ |]
261+ [ Nothing ,
262+ Just $ SignatureHelp [SignatureInformation " f :: forall a. a -> forall a1. a1 -> a1" Nothing (Just [ParameterInformation (InR (15 ,16 )) Nothing , ParameterInformation (InR (31 ,33 )) Nothing ]) (Just (InL 0 )), SignatureInformation " f :: Integer -> forall a. a -> a" Nothing (Just [ParameterInformation (InR (5 ,12 )) Nothing , ParameterInformation (InR (26 ,27 )) Nothing ]) (Just (InL 0 ))] (Just 0 ) (Just (InL 0 ))
235263 ]
236264 ]
237265
0 commit comments