module test import StdEnv import ReadLine Start :: *World -> (Int, String, *World) Start w # (f, w) = stdio w #! w = setReadLineName "Test program" w #! w = usingHistory w #! (_, w) = readHistory "readline.history" w #! w = addHistory "testentry" w #! (s, w) = readLine "first prompt: " True w #! (s, w) = readLine "uparrow should word with history: " False w #! (_, w) = writeHistory "readline.history" w #! (i, w) = historySearch "testentry" -1 w //#! w = clearHistory w = (i, s, w)