HORIZON HASKELLDocslts/ghc-9.14.xb2f3bfd2026-10-11Search names, modules, packages, or :: a typeCtrl K

GHC 9.14.1 · lts/ghc-9.14.x · b2f3bfd · 2026-10-11

Modulehaskeline-0.8.3.0Haskell98

System.Console.Haskeline.History

This module provides a low-level API to the line history stored in the InputT monad transformer.

For most application, it should suffice to instead use the following Settings flags:

  • autoAddHistory: add nonblank lines to the command history (True by default).

  • historyFile: read/write the history to a file before and after the line input session.

If you do want custom history behavior, you may need to disable the above default setting(s).

  • 1 type
  • 9 values
  • Packagehaskeline-0.8.3.0
  • Exports10
  • LanguageHaskell98
  • LicenceBSD-3-Clause
  • SourceHistory.hs
datadata History
#
Instances1Show
  • Show HistoryDefined in haskeline-0.8.3.0 · System.Console.Haskeline.History
valuewriteHistory :: FilePath -> History -> IO ()
#

Writes the line history to the given file. If there is an error when writing the file, it will be ignored.