diff options
author | Roman Smrž <roman.smrz@seznam.cz> | 2025-03-22 20:06:47 +0100 |
---|---|---|
committer | Roman Smrž <roman.smrz@seznam.cz> | 2025-03-22 20:06:47 +0100 |
commit | d7666d78cea8500b18ef399cd0fd640551e9dde0 (patch) | |
tree | 38b805deff43fc817158bf21a8adfe0f52365a13 /main/Terminal.hs | |
parent | 83d291f476a9793012a7aabb27c3cf59c7bdea05 (diff) |
Adapt interactive identity updates for Terminal
Diffstat (limited to 'main/Terminal.hs')
-rw-r--r-- | main/Terminal.hs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/main/Terminal.hs b/main/Terminal.hs index 21bbf4b..7767122 100644 --- a/main/Terminal.hs +++ b/main/Terminal.hs @@ -13,6 +13,7 @@ module Terminal ( clearBottomLines, CompletionFunc, Completion, + noCompletion, simpleCompletion, completeWordWithPrev, ) where @@ -288,6 +289,9 @@ type CompletionFunc m = ( String, String ) -> m ( String, [ Completion ] ) data Completion +noCompletion :: Monad m => CompletionFunc m +noCompletion ( l, _ ) = return ( l, [] ) + completeWordWithPrev :: Maybe Char -> [ Char ] -> (String -> String -> m [ Completion ]) -> CompletionFunc m completeWordWithPrev = error "TODO" |