ref: 6dd14a51e82d8586f9eca77443e01dc5990c0a2e
dir: /tests/Readline.hs/
module Readline(main) where import Prelude import System.Console.SimpleReadline main :: IO () main = do putStrLn "Type 'quit' to quit." loop loop :: IO () loop = do s <- getInputLineHist "hist.txt" "% " case s of Just "quit" -> putStrLn "Bye" _ -> do putStrLn $ showMaybe showString s; loop