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

GHC 10.0.0.20260917 · lts/ghc-10.0.x · 8c2f8e8 · 2026-10-19

Modulehakyll-4.17.0.0Haskell2010

Hakyll.Core.Util.File

A module containing various file utility functions

  • 4 values
  • Packagehakyll-4.17.0.0
  • Exports4
  • LanguageHaskell2010
  • LicenceBSD-3-Clause
  • SourceFile.hs
valuemakeDirectories :: FilePath -> IO ()
#

Given a path to a file, try to make the path writable by making all directories on the path.

valuegetRecursiveContents
  1. :: (FilePath -> IO Bool)

    Ignore this file/directory

  2. -> FilePath

    Directory to search

  3. -> IO [FilePath]

    List of files found for which you have permissions

#

Get all contents of a directory.

If a directory is encountered for which you do not have permission, the directory will be skipped instead of an exception being thrown.

If a dangling/broken symbolic link is encountered, then it will be skipped (since returning it may cause callers to throw exceptions).

valuewithPermissions
  1. :: IO a
  2. -> a

    Default value to return in case of a permission error

  3. -> IO a
#

Perform an IO action, catching any permission errors and returning a default value in their place. All other exceptions are rethrown.