HORIZON HASKELLDocslts/ghc-9.10.xc74966e2026-09-27Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · c74966e · 2026-09-27

Modulestrict-0.5.1Haskell2010

System.IO.Strict

The standard IO input functions using strict IO.

  • 4 values
  • Packagestrict-0.5.1
  • Exports4
  • LanguageHaskell2010
  • LicenceBSD-3-Clause
  • SourceStrict.hs

Strict Handle IO

1 declaration
valuehGetContents :: Handle -> IO String
#

Computation hGetContents hdl returns the list of characters corresponding to the unread portion of the channel or file managed by hdl, which is immediate closed.

Items are read strictly from the input Handle.

This operation may fail with:

  • isEOFError if the end of file has been reached.

Strict String IO wrappers

3 declarations
valueinteract :: (String -> String) -> IO ()
#

The interact function takes a function of type String->String as its argument. The entire input from the standard input device is passed to this function as its argument, and the resulting string is output on the standard output device.