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

GHC 10.0.0.20260917 · lts/ghc-10.0.x · fc4e598 · 2026-10-11

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.