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

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

ModuleAgda-2.8.0.2Haskell2010

Agda.Utils.IO.Directory

  • 3 values
  • PackageAgda-2.8.0.2
  • Exports3
  • LanguageHaskell2010
  • LicenceMIT
  • SourceDirectory.hs
valuecopyDirContent :: FilePath -> FilePath -> IO ()
#

copyDirContent src dest recursively copies directory src onto dest.

First, a to-do list of copy actions is created. Then, the to-do list is carried out.

This avoids copying files we have just created again, which can happen if src and dest are not disjoint. (See issue #2705.)

valuefindWithInfo
  1. :: RecursionPredicate

    Control recursion into subdirectories.

  2. -> FilterPredicate

    Decide whether a file appears in the result.

  3. -> FilePath

    Directory to start searching.

  4. -> IO [FileInfo]

    Files that matched the FilterPredicate.

#

Search a directory recursively, with recursion controlled by a RecursionPredicate. Lazily return a unsorted list of all files matching the given FilterPredicate. Any errors that occur are ignored, with warnings printed to stderr.