add setCompletionFunction in GF.System.Readline

This commit is contained in:
kr.angelov
2008-06-03 16:54:59 +00:00
parent cdb1eaf58f
commit 17e349abd3
3 changed files with 18 additions and 6 deletions

View File

@@ -12,7 +12,7 @@
-- Do not use readline.
-----------------------------------------------------------------------------
module GF.System.NoReadline (fetchCommand) where
module GF.System.NoReadline (fetchCommand, setCompletionFunction) where
import System.IO.Error (try)
import System.IO (stdout,hFlush)
@@ -25,3 +25,6 @@ fetchCommand s = do
case res of
Left e -> return "q"
Right l -> return l
setCompletionFunction :: Maybe (String -> String -> Int -> IO [String]) -> IO ()
setCompletionFunction _ = return ()