summaryrefslogtreecommitdiff
path: root/src-3.0/GF/System/NoReadline.hs
diff options
context:
space:
mode:
authorkr.angelov <kr.angelov@chalmers.se>2008-06-03 16:54:59 +0000
committerkr.angelov <kr.angelov@chalmers.se>2008-06-03 16:54:59 +0000
commitea145ddf5289c1f12d01a39ceb2935ddce8b31a0 (patch)
treec1ebce2e9aa46883d9471502a279239f1952c341 /src-3.0/GF/System/NoReadline.hs
parentbd1fd9569634240c26c9961298b7a4b503cc2c59 (diff)
add setCompletionFunction in GF.System.Readline
Diffstat (limited to 'src-3.0/GF/System/NoReadline.hs')
-rw-r--r--src-3.0/GF/System/NoReadline.hs5
1 files changed, 4 insertions, 1 deletions
diff --git a/src-3.0/GF/System/NoReadline.hs b/src-3.0/GF/System/NoReadline.hs
index 138ba4e28..564200a3e 100644
--- a/src-3.0/GF/System/NoReadline.hs
+++ b/src-3.0/GF/System/NoReadline.hs
@@ -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 ()