cabal-gild-1.3.1.0: Formats package descriptions.
Safe HaskellSafe-Inferred
LanguageHaskell2010

CabalGild.Unstable.Class.MonadWalk

Synopsis

Documentation

class Monad m => MonadWalk m where Source #

A Monad that can also walk the file system.

Methods

walk :: FilePath -> m [FilePath] Source #

Lists all files in the given directory and its subdirectories recursively.

Instances

Instances details
MonadWalk IO Source #

Uses listDirectoryRecursively.

Instance details

Defined in CabalGild.Unstable.Class.MonadWalk

Methods

walk :: FilePath -> IO [FilePath] Source #

listDirectoryRecursively :: FilePath -> IO [FilePath] Source #

Lists all files in the given directory and its subdirectories recursively. The order is not guaranteed and may change between different calls. It's also not specified if the results are breadth-first or depth-first.