- columns :: [[String]] -> [[String]]
- justify :: String -> Int -> [[String]]
- mapSnd :: (b -> c) -> (a, b) -> (a, c)
- parentPath :: FilePath -> FilePath
- canon :: FilePath -> FilePath
- listMap :: Ord k => [(k, a)] -> Map k [a]
- listDiff :: Ord a => [a] -> [a] -> [a]
- checkSuperUser :: IO Bool
- md5sum :: FilePath -> IO (Either String String)
- sameInode :: FilePath -> FilePath -> IO Bool
- sameMd5sum :: FilePath -> FilePath -> IO Bool
- tarDir :: FilePath -> IO (Maybe String)
- splitOutput :: [Output] -> (ByteString, ByteString, ExitCode)
- cd :: FilePath -> IO a -> IO a
- read' :: Read a => String -> a
List functions
String functions
columns :: [[String]] -> [[String]]Source
Pad strings so the columns line up. The argument and return value elements are the rows of a table. Do not pad the rightmost column.
Tuple functions
FilePath functions
parentPath :: FilePath -> FilePathSource
dirname
Map and Set functions
listMap :: Ord k => [(k, a)] -> Map k [a]Source
Turn a list of (k, a) pairs into a map from k -> [a]. The order of the elements in the a list is preserved.
Either functions
System.IO functions
System.Posix
checkSuperUser :: IO BoolSource
A version of read with a more helpful error message.
md5sum :: FilePath -> IO (Either String String)Source
Run md5sum on a file and return the resulting checksum as text.
sameInode :: FilePath -> FilePath -> IO BoolSource
Predicate to decide if two files have the same inode.
sameMd5sum :: FilePath -> FilePath -> IO BoolSource
Predicate to decide if two files have the same md5 checksum.
Processes
splitOutput :: [Output] -> (ByteString, ByteString, ExitCode)Source