Safe Haskell | None |
---|---|
Language | Haskell98 |
Synopsis
- 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
- paths :: Traversal' a FilePath
- canonicalize :: Paths a => a -> IO a
- absolutise :: Paths a => Path -> a -> a
- relativise :: Paths a => Path -> a -> a
- normalize :: Paths a => a -> a
Documentation
fromFilePath :: FilePath -> Path Source #
splitPaths :: Path -> [Path] Source #
Something with paths inside
paths :: Traversal' a FilePath Source #
Instances
Paths FilePath Source # | |
Defined in System.Directory.Paths | |
Paths Path Source # | |
Defined in System.Directory.Paths | |
Paths PackageDb Source # | |
Defined in HsDev.PackageDb.Types | |
Paths PackageDbStack Source # | |
Defined in HsDev.PackageDb.Types | |
Paths Sandbox Source # | |
Defined in HsDev.Project.Types | |
Paths Info Source # | |
Defined in HsDev.Project.Types | |
Paths Test Source # | |
Defined in HsDev.Project.Types | |
Paths Executable Source # | |
Defined in HsDev.Project.Types | |
Paths Library Source # | |
Defined in HsDev.Project.Types | |
Paths TargetInfo Source # | |
Defined in HsDev.Project.Types | |
Paths ProjectDescription Source # | |
Defined in HsDev.Project.Types | |
Paths Project Source # | |
Defined in HsDev.Project.Types | |
Paths ModuleLocation Source # | |
Defined in HsDev.Symbols.Location | |
Paths TargetFilter Source # | |
Defined in HsDev.Server.Types | |
Paths FileSource Source # | |
Defined in HsDev.Server.Types | |
Paths Command Source # | |
Defined in HsDev.Server.Types | |
Paths (Note a) Source # | |
Defined in HsDev.Tools.Types |
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