Safe Haskell | None |
---|---|
Language | Haskell2010 |
Finding files.
- findFileUp :: (MonadIO m, MonadThrow m) => Path Abs Dir -> (Path Abs File -> Bool) -> Maybe (Path Abs Dir) -> m (Maybe (Path Abs File))
- findDirUp :: (MonadIO m, MonadThrow m) => Path Abs Dir -> (Path Abs Dir -> Bool) -> Maybe (Path Abs Dir) -> m (Maybe (Path Abs Dir))
- findFiles :: Path Abs Dir -> (Path Abs File -> Bool) -> (Path Abs Dir -> Bool) -> IO [Path Abs File]
- findInParents :: MonadIO m => (Path Abs Dir -> m (Maybe a)) -> Path Abs Dir -> m (Maybe a)
Documentation
:: (MonadIO m, MonadThrow m) | |
=> Path Abs Dir | Start here. |
-> (Path Abs File -> Bool) | Predicate to match the file. |
-> Maybe (Path Abs Dir) | Do not ascend above this directory. |
-> m (Maybe (Path Abs File)) | Absolute file path. |
Find the location of a file matching the given predicate.
:: (MonadIO m, MonadThrow m) | |
=> Path Abs Dir | Start here. |
-> (Path Abs Dir -> Bool) | Predicate to match the directory. |
-> Maybe (Path Abs Dir) | Do not ascend above this directory. |
-> m (Maybe (Path Abs Dir)) | Absolute directory path. |
Find the location of a directory matching the given predicate.