packages feed

MicroHs-0.17.4.0 / tests / Readline.hs

module Readline(main) whereimport System.Console.SimpleReadlinemain :: IO ()main = do  putStrLn "Type 'quit' to quit."  looploop :: IO ()loop = do  s <- getInputLineHist "hist.txt" "% "  case s of    Just "quit" -> putStrLn "Bye"    _ -> do putStrLn $ showMaybe showString s; loop