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

Modulemockery-0.3.5Haskell2010

Test.Mockery.Directory

  • 4 values
  • Packagemockery-0.3.5
  • Exports4
  • LanguageHaskell2010
  • LicenceMIT
  • SourceDirectory.hs
valueinTempDirectory :: IO a -> IO a
#

Run given action with the current working directory set to a temporary directory.

The directory is created before the action is run. After the action has completed the directory is removed and the current working directory is restored to its original value.

valuewithFile :: String -> (FilePath -> IO a) -> IO a
#

Create a temporary file with the given contents and execute the given action.

The file is removed after the action has completed.

valuetouch :: FilePath -> IO ()
#

Update the modification time of the specified file. Create an empty file (including any missing directories in the file path) if the file does not exist.