path-utils-0.1.1.0: Handful of simple utility functions for the path library.

LicenseMIT
Stabilityexperimental
Safe HaskellNone
LanguageHaskell2010

Path.Utils

Description

Miscellaneous utility functions for the path library.

Synopsis

Documentation

(</$>) :: Functor f => Path b Dir -> f (Path Rel t) -> f (Path b t) Source #

Apply `(/)` to every relative path inside a functor.

changeDir :: MonadThrow m => Path b Dir -> Path b' Dir -> Path b t -> m (Path b' t) Source #

Change directory from src to dst.

splitPath :: Path Rel t -> [Text] Source #

Split a relative path into text sections.

toFilePathText :: Path b t -> Text Source #

Convert a Path to Text.