| Safe Haskell | Safe-Inferred |
|---|---|
| Language | Haskell2010 |
IHaskell.Eval.Completion
Description
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)
Synopsis
- complete :: String -> Int -> Interpreter (String, [String])
- completionTarget :: String -> Int -> [String]
- completionType :: String -> Int -> [String] -> CompletionType
- data CompletionType
Documentation
Arguments
| :: 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.
data CompletionType Source #
Constructors
| Empty | |
| Identifier String | |
| DynFlag String | |
| Qualified String String | |
| ModuleName String String | |
| HsFilePath String String | |
| FilePath String String | |
| KernelOption String | |
| Extension String |
Instances
| Show CompletionType Source # | |
Defined in IHaskell.Eval.Completion Methods showsPrec :: Int -> CompletionType -> ShowS # show :: CompletionType -> String # showList :: [CompletionType] -> ShowS # | |
| Eq CompletionType Source # | |
Defined in IHaskell.Eval.Completion Methods (==) :: CompletionType -> CompletionType -> Bool # (/=) :: CompletionType -> CompletionType -> Bool # | |