hsep -pretty

hsep :: [Doc] -> Doc
template-haskell Language.Haskell.TH.PprLib
List version of <+>
ParagraphSeparator :: GeneralCategory
base Data.Char
Zp: Separator, Paragraph
addTrailingPathSeparator :: FilePath -> FilePath
filepath System.FilePath.Windows, filepath System.FilePath.Posix
Add a trailing file path separator if one is not already present. > hasTrailingPathSeparator (addTrailingPathSeparator x) > hasTrailingPathSeparator x ==> addTrailingPathSeparator x == x > Posix: addTrailingPathSeparator "test/rest" == "test/rest/"
dropTrailingPathSeparator :: FilePath -> FilePath
filepath System.FilePath.Windows, filepath System.FilePath.Posix
Remove any trailing path separators > dropTrailingPathSeparator "file/test/" == "file/test" > Posix: not (hasTrailingPathSeparator (dropTrailingPathSeparator x)) || isDrive x > Posix: dropTrailingPathSeparator "/" == "/" > Windows: dropTrailingPathSeparator "\\" == "\\"
hasTrailingPathSeparator :: FilePath -> Bool
filepath System.FilePath.Windows, filepath System.FilePath.Posix
Is an item either a directory or the last character a path separator? > hasTrailingPathSeparator "test" == False > hasTrailingPathSeparator "test/" == True
isPathSeparator :: Char -> Bool
filepath System.FilePath.Windows, filepath System.FilePath.Posix
Rather than using (== pathSeparator), use this. Test if something is a path separator. > isPathSeparator a == (a `elem` pathSeparators)
isSearchPathSeparator :: Char -> Bool
filepath System.FilePath.Windows, filepath System.FilePath.Posix
Is the character a file separator? > isSearchPathSeparator a == (a == searchPathSeparator)
pathSeparator :: Char
filepath System.FilePath.Windows, filepath System.FilePath.Posix
The character that separates directories. In the case one character is possible, pathSeparator is the 'ideal' one. > Windows: pathSeparator == '\\' > Posix: pathSeparator == '/' > isPathSeparator pathSeparator
pathSeparators :: [Char]
filepath System.FilePath.Windows, filepath System.FilePath.Posix
The list of all possible separators. > Windows: pathSeparators == ['\\', '/'] > Posix: pathSeparators == ['/'] > pathSeparator `elem` pathSeparators
searchPathSeparator :: Char
filepath System.FilePath.Windows, filepath System.FilePath.Posix
The character that is used to separate the entries in the $PATH environment variable. > Windows: searchPathSeparator == ';' > Posix: searchPathSeparator == ':'