rio-0.1.22.0: A standard library for Haskell

Safe Haskell | Safe-Inferred
Language | Haskell2010

RIO.FilePath

Synopsis

- type FilePath = String
- addExtension :: FilePath -> String -> FilePath
- makeRelative :: FilePath -> FilePath -> FilePath
- isPathSeparator :: Char -> Bool
- pathSeparator :: Char
- normalise :: FilePath -> FilePath
- (-<.>) :: FilePath -> String -> FilePath
- (<.>) :: FilePath -> String -> FilePath
- (</>) :: FilePath -> FilePath -> FilePath
- addTrailingPathSeparator :: FilePath -> FilePath
- combine :: FilePath -> FilePath -> FilePath
- dropDrive :: FilePath -> FilePath
- dropExtension :: FilePath -> FilePath
- dropExtensions :: FilePath -> FilePath
- dropFileName :: FilePath -> FilePath
- dropTrailingPathSeparator :: FilePath -> FilePath
- equalFilePath :: FilePath -> FilePath -> Bool
- extSeparator :: Char
- hasDrive :: FilePath -> Bool
- hasExtension :: FilePath -> Bool
- hasTrailingPathSeparator :: FilePath -> Bool
- isAbsolute :: FilePath -> Bool
- isDrive :: FilePath -> Bool
- isExtSeparator :: Char -> Bool
- isExtensionOf :: String -> FilePath -> Bool
- isRelative :: FilePath -> Bool
- isSearchPathSeparator :: Char -> Bool
- isValid :: FilePath -> Bool
- joinDrive :: FilePath -> FilePath -> FilePath
- joinPath :: [FilePath] -> FilePath
- makeValid :: FilePath -> FilePath
- pathSeparators :: [Char]
- replaceBaseName :: FilePath -> String -> FilePath
- replaceDirectory :: FilePath -> String -> FilePath
- replaceExtension :: FilePath -> String -> FilePath
- replaceExtensions :: FilePath -> String -> FilePath
- replaceFileName :: FilePath -> String -> FilePath
- searchPathSeparator :: Char
- splitDirectories :: FilePath -> [FilePath]
- splitDrive :: FilePath -> (FilePath, FilePath)
- splitExtension :: FilePath -> (String, String)
- splitExtensions :: FilePath -> (FilePath, String)
- splitFileName :: FilePath -> (String, String)
- splitPath :: FilePath -> [FilePath]
- splitSearchPath :: String -> [FilePath]
- stripExtension :: String -> FilePath -> Maybe FilePath
- takeBaseName :: FilePath -> String
- takeDirectory :: FilePath -> FilePath
- takeDrive :: FilePath -> FilePath
- takeExtension :: FilePath -> String
- takeExtensions :: FilePath -> String
- takeFileName :: FilePath -> FilePath
- getSearchPath :: MonadIO m => m [FilePath]

# Documentation

type FilePath = String #

addExtension :: FilePath -> String -> FilePath #

makeRelative :: FilePath -> FilePath -> FilePath #

isPathSeparator :: Char -> Bool #

pathSeparator :: Char #

normalise :: FilePath -> FilePath #

(-<.>) :: FilePath -> String -> FilePath #

(<.>) :: FilePath -> String -> FilePath #

(</>) :: FilePath -> FilePath -> FilePath #

addTrailingPathSeparator :: FilePath -> FilePath #

combine :: FilePath -> FilePath -> FilePath #

dropDrive :: FilePath -> FilePath #

dropExtension :: FilePath -> FilePath #

dropExtensions :: FilePath -> FilePath #

dropFileName :: FilePath -> FilePath #

dropTrailingPathSeparator :: FilePath -> FilePath #

equalFilePath :: FilePath -> FilePath -> Bool #

extSeparator :: Char #

hasDrive :: FilePath -> Bool #

hasExtension :: FilePath -> Bool #

hasTrailingPathSeparator :: FilePath -> Bool #

isAbsolute :: FilePath -> Bool #

isDrive :: FilePath -> Bool #

isExtSeparator :: Char -> Bool #

isExtensionOf :: String -> FilePath -> Bool #

isRelative :: FilePath -> Bool #

isSearchPathSeparator :: Char -> Bool #

isValid :: FilePath -> Bool #

joinDrive :: FilePath -> FilePath -> FilePath #

joinPath :: [FilePath] -> FilePath #

makeValid :: FilePath -> FilePath #

pathSeparators :: [Char] #

replaceBaseName :: FilePath -> String -> FilePath #

replaceDirectory :: FilePath -> String -> FilePath #

replaceExtension :: FilePath -> String -> FilePath #

replaceExtensions :: FilePath -> String -> FilePath #

replaceFileName :: FilePath -> String -> FilePath #

searchPathSeparator :: Char #

splitDirectories :: FilePath -> [FilePath] #

splitDrive :: FilePath -> (FilePath, FilePath) #

splitExtension :: FilePath -> (String, String) #

splitExtensions :: FilePath -> (FilePath, String) #

splitFileName :: FilePath -> (String, String) #

splitPath :: FilePath -> [FilePath] #

splitSearchPath :: String -> [FilePath] #

stripExtension :: String -> FilePath -> Maybe FilePath #

takeBaseName :: FilePath -> String #

takeDirectory :: FilePath -> FilePath #

takeDrive :: FilePath -> FilePath #

takeExtension :: FilePath -> String #

takeExtensions :: FilePath -> String #

takeFileName :: FilePath -> FilePath #

getSearchPath :: MonadIO m => m [FilePath] #

Lifted version of `getSearchPath`