Safe Haskell | Safe-Infered |
---|
Network.Gitit.Util
Documentation
readFileUTF8 :: FilePath -> IO String
Read file as UTF-8 string. Encode filename as UTF-8.
withTempDir :: FilePath -> (FilePath -> IO a) -> IO a
Perform a function in a temporary directory and clean up.
orIfNull :: [a] -> [a] -> [a]
Returns a list, if it is not null, or a backup, if it is.
splitCategories :: String -> [String]
Split a string containing a list of categories.
parsePageType :: String -> (PageType, Bool)