rio-0.1.18.0: A standard library for Haskell

Safe Haskell | Safe
Language | Haskell2010

RIO.FilePath

Synopsis

- type FilePath = String
- (-<.>) :: FilePath -> String -> FilePath
- (<.>) :: FilePath -> String -> FilePath
- (</>) :: FilePath -> FilePath -> FilePath
- addExtension :: FilePath -> String -> 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
- isPathSeparator :: Char -> Bool
- isRelative :: FilePath -> Bool
- isSearchPathSeparator :: Char -> Bool
- isValid :: FilePath -> Bool
- joinDrive :: FilePath -> FilePath -> FilePath
- joinPath :: [FilePath] -> FilePath
- makeRelative :: FilePath -> FilePath -> FilePath
- makeValid :: FilePath -> FilePath
- normalise :: FilePath -> FilePath
- pathSeparator :: Char
- 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 #

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

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

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

addExtension :: FilePath -> String -> 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 #

isPathSeparator :: Char -> Bool #

isRelative :: FilePath -> Bool #

isSearchPathSeparator :: Char -> Bool #

isValid :: FilePath -> Bool #

joinDrive :: FilePath -> FilePath -> FilePath #

joinPath :: [FilePath] -> FilePath #

makeRelative :: FilePath -> FilePath -> FilePath #

makeValid :: FilePath -> FilePath #

normalise :: FilePath -> FilePath #

pathSeparator :: Char #

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] Source #

Lifted version of `getSearchPath`