Safe Haskell | None |
---|---|
Language | Haskell98 |
- readFileUTF8 :: FilePath -> IO String
- inDir :: FilePath -> IO a -> IO a
- withTempDir :: FilePath -> (FilePath -> IO a) -> IO a
- orIfNull :: [a] -> [a] -> [a]
- splitCategories :: String -> [String]
- trim :: String -> String
- yesOrNo :: Bool -> String
- parsePageType :: String -> (PageType, Bool)
- encUrl :: String -> String
Documentation
readFileUTF8 :: FilePath -> IO String Source
Read file as UTF-8 string. Encode filename as UTF-8.
inDir :: FilePath -> IO a -> IO a Source
Perform a function a directory and return to working directory.
withTempDir :: FilePath -> (FilePath -> IO a) -> IO a Source
Perform a function in a temporary directory and clean up.
splitCategories :: String -> [String] Source
Split a string containing a list of categories.
parsePageType :: String -> (PageType, Bool) Source