Modulehaskeline-0.8.2.1Haskell98
System.Console.Haskeline.Completion
- 2 types
- 11 values
- Packagehaskeline-0.8.2.1
- Exports13
- LanguageHaskell98
- LicenceBSD-3-Clause
- SourceCompletion.hs
Constructors
Completionreplacement :: StringText to insert in line.
display :: StringText to display when listing alternatives.
isFinished :: BoolWhether this word should be followed by a space, end quote, etc.
Instances3Eq, Ord, Show
Eq CompletionDefined in haskeline-0.8.2.1 · System.Console.Haskeline.CompletionOrd CompletionDefined in haskeline-0.8.2.1 · System.Console.Haskeline.CompletionShow CompletionDefined in haskeline-0.8.2.1 · System.Console.Haskeline.Completion
Disable completion altogether.
Create a finished completion out of the given word.
If the first completer produces no suggestions, fallback to the second completer's output.
Word completion
5 declarationscompleteWord :: Monad m=> Maybe CharAn optional escape character
-> [Char]Characters which count as whitespace
-> (String -> m [Completion])Function to produce a list of possible completions
-> CompletionFunc m
A custom CompletionFunc which completes the word immediately to the left of the cursor.
A word begins either at the start of the line or after an unescaped whitespace character.
completeWord' :: Monad m=> Maybe CharAn optional escape character
-> (Char -> Bool)Characters which count as whitespace
-> (String -> m [Completion])Function to produce a list of possible completions
-> CompletionFunc m
The same as completeWord but takes a predicate for the whitespace characters
completeWordWithPrev :: Monad m=> Maybe CharAn optional escape character
-> [Char]Characters which count as whitespace
-> (String -> String -> m [Completion])Function to produce a list of possible completions. The first argument is the line contents to the left of the word, reversed. The second argument is the word to be completed.
-> CompletionFunc m
A custom CompletionFunc which completes the word immediately to the left of the cursor, and takes into account the line contents to the left of the word.
A word begins either at the start of the line or after an unescaped whitespace character.
completeWordWithPrev' :: Monad m=> Maybe CharAn optional escape character
-> (Char -> Bool)Characters which count as whitespace
-> (String -> String -> m [Completion])Function to produce a list of possible completions. The first argument is the line contents to the left of the word, reversed. The second argument is the word to be completed.
-> CompletionFunc m
The same as completeWordWithPrev but takes a predicate for the whitespace characters
completeQuotedWord :: Monad m=> Maybe CharAn optional escape character
-> [Char]Characters which set off quotes
-> (String -> m [Completion])Function to produce a list of possible completions
-> CompletionFunc mAlternate completion to perform if the cursor is not at a quoted word
-> CompletionFunc m
Filename completion
3 declarationsList all of the files or folders beginning with this path.