HORIZON HASKELLDocslts/ghc-10.0.x8fef28d2026-11-02Search packagesCtrl K
Theme: |

GHC 10.0.0.20260917 · lts/ghc-10.0.x · 8fef28d · 2026-11-02

Modulehakyll-4.17.0.0Haskell2010

Hakyll.Core.Util.File

A module containing various file utility functions

Synopsis
  • Packagehakyll-4.17.0.0
  • Exports4
  • LanguageHaskell2010
  • LicenceBSD-3-Clause
  • SourceFile.hs
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.