Safe Haskell | None |
---|---|
Language | Haskell98 |
- type Path = Text
- path :: Lens' Path FilePath
- fromFilePath :: FilePath -> Path
- joinPaths :: [Path] -> Path
- splitPaths :: Path -> [Path]
- normPath :: Path -> Path
- subPath :: Path -> Path -> Path
- relPathTo :: Path -> Path -> Path
- dirExists :: Path -> IO Bool
- fileExists :: Path -> IO Bool
- takeDir :: Path -> Path
- isParent :: Path -> Path -> Bool
- class Paths a where
- canonicalize :: Paths a => a -> IO a
- absolutise :: Paths a => Path -> a -> a
- relativise :: Paths a => Path -> a -> a
Documentation
fromFilePath :: FilePath -> Path Source #
splitPaths :: Path -> [Path] Source #
Something with paths inside
paths :: Traversal' a FilePath Source #
canonicalize :: Paths a => a -> IO a Source #
Canonicalize all paths
absolutise :: Paths a => Path -> a -> a Source #
Absolutise paths
relativise :: Paths a => Path -> a -> a Source #
Relativise paths