HORIZON HASKELLDocslts/ghc-9.14.x7a6c33e2026-10-12Search packagesCtrl K
Theme: |

GHC 9.14.1 · lts/ghc-9.14.x · 7a6c33e · 2026-10-12

ModuleAgda-2.8.0.2Haskell2010

Agda.Utils.IO.Directory

Synopsis
  • PackageAgda-2.8.0.2
  • Exports3
  • LanguageHaskell2010
  • LicenceMIT
  • SourceDirectory.hs

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.