Module FilePath

This library is a direct port of the Haskell library System.FilePath of Neil Mitchell.

Author: Bjoern Peemoeller

Version: November 2011

Summary of exported operations:

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

Exported datatypes:


FilePath

Type synonym: FilePath = String


Exported operations:

pathSeparator :: Char   

pathSeparators :: String   

isPathSeparator :: Char -> Bool   

searchPathSeparator :: Char   

isSearchPathSeparator :: Char -> Bool   

extSeparator :: Char   

Further infos:
  • solution complete, i.e., able to compute all solutions

isExtSeparator :: Char -> Bool   

splitSearchPath :: String -> [String]   

getSearchPath :: IO [String]   

splitExtension :: String -> (String,String)   

takeExtension :: String -> String   

replaceExtension :: String -> String -> String   

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

Further infos:
  • defined as right-associative infix operator with precedence 7

dropExtension :: String -> String   

addExtension :: String -> String -> String   

hasExtension :: String -> Bool   

splitExtensions :: String -> (String,String)   

dropExtensions :: String -> String   

takeExtensions :: String -> String   

isExtensionOf :: String -> String -> Bool   

splitDrive :: String -> (String,String)   

joinDrive :: String -> String -> String   

takeDrive :: String -> String   

dropDrive :: String -> String   

hasDrive :: String -> Bool   

isDrive :: String -> Bool   

splitFileName :: String -> (String,String)   

replaceFileName :: String -> String -> String   

dropFileName :: String -> String   

takeFileName :: String -> String   

takeBaseName :: String -> String   

replaceBaseName :: String -> String -> String   

hasTrailingPathSeparator :: String -> Bool   

addTrailingPathSeparator :: String -> String   

dropTrailingPathSeparator :: String -> String   

takeDirectory :: String -> String   

replaceDirectory :: String -> String -> String   

combine :: String -> String -> String   

(</>) :: String -> String -> String   

Further infos:
  • defined as right-associative infix operator with precedence 5

splitPath :: String -> [String]   

splitDirectories :: String -> [String]   

joinPath :: [String] -> String   

equalFilePath :: String -> String -> Bool   

makeRelative :: String -> String -> String   

normalise :: String -> String   

isValid :: String -> Bool   

makeValid :: String -> String   

isRelative :: String -> Bool   

isAbsolute :: String -> Bool