Safe Haskell | None |
---|
- 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 String
- sameInode :: FilePath -> FilePath -> IO Bool
- sameMd5sum :: FilePath -> FilePath -> IO Bool
- tarDir :: FilePath -> IO (Maybe String)
- cd :: FilePath -> IO a -> IO a
- read' :: Read a => String -> a
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.
System.Posix
md5sum :: FilePath -> IO StringSource
Deprecated: Use Data.ByteString.Lazy.Char8.readFile path >>= return . show . Data.Digest.Pure.MD5.md5
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.