Safe Haskell | None |
---|
This has a limited amount of context sensitivity. It distinguishes between four contexts at the moment: - import statements (completed using modules) - identifiers (completed using in scope values) - extensions via :ext (completed using GHC extensions) - qualified identifiers (completed using in-scope values)
- complete :: String -> Int -> Interpreter (String, [String])
- completionTarget :: String -> Int -> [String]
- completionType :: String -> Int -> [String] -> CompletionType
- data CompletionType
Documentation
completionTarget :: String -> Int -> [String]Source
Get the word under a given cursor location.
:: String | The line on which the completion is being done. |
-> Int | Location of the cursor in the line. |
-> [String] | The identifier being completed (pieces separated by dots). |
-> CompletionType |
Get which type of completion this is from the surrounding context.