WashNGo-2.12.0.1: WASH is a family of EDSLs for programming Web applications in Haskell.

WASH.Utility.FileNames

Description

Collection of function for manipulating file names.

Synopsis

Documentation

longestSuffix :: (a -> Bool) -> [a] -> [a]Source

filePart :: String -> StringSource

longest suffix of path that does not contain /

extName :: String -> StringSource

longest suffix of path that does not contain .

baseName :: String -> StringSource

longest prefix so that the rest contains .; entire string if no . present

fileToPath :: String -> [String]Source

splits input at each /

dropLastComponent :: String -> StringSource

drop the last component of a file path