shithub: MicroHs

ref: 20490c2ef5e639ba6034a47a03d0ca8bca16404f
dir: /ghc/System/Console/SimpleReadline.hs/

View raw version
module System.Console.SimpleReadline(
--  getInputLine,
  getInputLineHist
  ) where
import qualified System.Console.Haskeline as H
import System.Console.Haskeline hiding (getInputLine)

{-
getInputLine :: String -> IO (Maybe String)
getInputLine prompt =
  runInputT defaultSettings (H.getInputLine prompt)
-}

getInputLineHist :: FilePath -> String -> IO (Maybe String)
getInputLineHist hist prompt =
  runInputT settings (H.getInputLine prompt)
  where settings = defaultSettings { historyFile = Just hist }