Operations on file names.
- data AbsolutePath
- filePath :: AbsolutePath -> FilePath
- mkAbsolute :: FilePath -> AbsolutePath
- absolute :: FilePath -> IO AbsolutePath
- (===) :: AbsolutePath -> AbsolutePath -> Bool
- tests :: IO Bool
Documentation
data AbsolutePath Source
mkAbsolute :: FilePath -> AbsolutePathSource
Constructs AbsolutePath
s.
Precondition: The path must be absolute and valid.
absolute :: FilePath -> IO AbsolutePathSource
Makes the path absolute.
This function may raise an __IMPOSSIBLE__
error if
canonicalizePath
does not return an absolute path.
(===) :: AbsolutePath -> AbsolutePath -> BoolSource
Tries to establish if the two file paths point to the same file (or directory).