Portability | non-portable (unix-specific at the moment) |
---|---|
Stability | experimental |
Maintainer | libraries@haskell.org |
Safe Haskell | None |
System.Console.SimpleLineEditor
Description
A simple line editor, using the GNU readline library if available, or a small emulation otherwise.
Documentation
initialise :: IO ()
Set up the environment so that the terminal passes characters directly into the Haskell program, for immediate interpretation by the line editor.
getLineEdited :: String -> IO (Maybe String)