FilePather-0.2.0: Functions on System.FilePath

Safe HaskellSafe-Infered

System.FilePath.FilePather.Find

Synopsis

Documentation

class Find f whereSource

Methods

find :: FilterPredicateT f -> RecursePredicateT f -> FilePath -> IO [FindR]Source

Finds all files using the given recurse predicate and filter predicate in the given file path.

findHere :: FilterPredicateT f -> RecursePredicateT f -> IO [FindR]Source

Find files in the current directory.

findp :: FilterPredicateT f -> RecursePredicateT f -> FilePath -> IO [FilePath]Source

Finds all files using the given recurse predicate and filter predicate in the given file path.

findpHere :: FilterPredicateT f -> RecursePredicateT f -> IO [FilePath]Source

Find files in the current directory.

Instances

findi :: FilterPredicate -> RecursePredicate -> FilePath -> IO [FindR]Source

A specialisation of find to the Identity monad. Useful in assisting type-inference.

findpi :: FilterPredicate -> RecursePredicate -> FilePath -> IO [FilePath]Source

A specialisation of findp to the Identity monad. Useful in assisting type-inference.

data FindR Source

The results of a path find. One of

  • found with the file path name and file type.
  • drop with the file path name and file type.
  • recurse with the file path (the file type is always directory).
  • `no-recurse` with the file path (the file type is always directory).

Instances