HORIZON HASKELLDocslts/ghc-9.10.x248f8f02026-10-05Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · 248f8f0 · 2026-10-05

Modulesilently-1.2.5.4Haskell98

System.IO.Silently

Need to prevent output to the terminal, a file, or stderr? Need to capture it and use it for your own means? Now you can, with silence and capture.

  • 6 values
  • Packagesilently-1.2.5.4
  • Exports6
  • LanguageHaskell98
  • LicenceBSD-3-Clause
  • SourceSilently.hs
valuesilence :: IO a -> IO a
#

Run an IO action while preventing all output to stdout.

valuehSilence :: [Handle] -> IO a -> IO a
#

Run an IO action while preventing all output to the given handles.

valuecapture :: IO a -> IO (String, a)
#

Run an IO action while preventing and capturing all output to stdout. This will, as a side effect, create and delete a temp file in the temp directory or current directory if there is no temp directory.

valuehCapture :: [Handle] -> IO a -> IO (String, a)
#

Run an IO action while preventing and capturing all output to the given handles. This will, as a side effect, create and delete a temp file in the temp directory or current directory if there is no temp directory.