darcs-2.2.0: a distributed, interactive, smart revision control systemSource codeContentsIndex
Darcs.RepoPath
Synopsis
data AbsolutePath
makeAbsolute :: AbsolutePath -> FilePath -> AbsolutePath
ioAbsolute :: FilePath -> IO AbsolutePath
rootDirectory :: AbsolutePath
data SubPath
makeSubPathOf :: AbsolutePath -> AbsolutePath -> Maybe SubPath
simpleSubPath :: FilePath -> Maybe SubPath
data AbsolutePathOrStd
makeAbsoluteOrStd :: AbsolutePath -> String -> AbsolutePathOrStd
ioAbsoluteOrStd :: String -> IO AbsolutePathOrStd
useAbsoluteOrStd :: (AbsolutePath -> IO a) -> IO a -> AbsolutePathOrStd -> IO a
data AbsoluteOrRemotePath
ioAbsoluteOrRemote :: String -> IO AbsoluteOrRemotePath
isRemote :: AbsoluteOrRemotePath -> Bool
sp2fn :: SubPath -> FileName
class FilePathOrURL a where
toPath :: a -> String
class FilePathOrURL a => FilePathLike a where
toFilePath :: a -> FilePath
getCurrentDirectory :: IO AbsolutePath
setCurrentDirectory :: FilePathLike p => p -> IO ()
Documentation
data AbsolutePath Source
show/hide Instances
makeAbsolute :: AbsolutePath -> FilePath -> AbsolutePathSource
ioAbsolute :: FilePath -> IO AbsolutePathSource
Interpret a possibly relative path wrt the current working directory
rootDirectory :: AbsolutePathSource
data SubPath Source
Relative to the local darcs repository and normalized Note: these are understood not to have the dot in front
show/hide Instances
makeSubPathOf :: AbsolutePath -> AbsolutePath -> Maybe SubPathSource
Make the second path relative to the first, if possible
simpleSubPath :: FilePath -> Maybe SubPathSource
data AbsolutePathOrStd Source
show/hide Instances
makeAbsoluteOrStd :: AbsolutePath -> String -> AbsolutePathOrStdSource
ioAbsoluteOrStd :: String -> IO AbsolutePathOrStdSource
useAbsoluteOrStd :: (AbsolutePath -> IO a) -> IO a -> AbsolutePathOrStd -> IO aSource
data AbsoluteOrRemotePath Source
show/hide Instances
ioAbsoluteOrRemote :: String -> IO AbsoluteOrRemotePathSource
isRemote :: AbsoluteOrRemotePath -> BoolSource
sp2fn :: SubPath -> FileNameSource
class FilePathOrURL a whereSource
Methods
toPath :: a -> StringSource
show/hide Instances
class FilePathOrURL a => FilePathLike a whereSource
Methods
toFilePath :: a -> FilePathSource
show/hide Instances
getCurrentDirectory :: IO AbsolutePathSource
setCurrentDirectory :: FilePathLike p => p -> IO ()Source
Produced by Haddock version 2.4.2