ref: 3bc7e25513e7b7057ab21fb88d4ba562b6b1f06a
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