Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- readFileUTF8 :: FilePath -> IO Text
- 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
- getPageTypeDefaultExtensions :: PageType -> Bool -> Extensions
Documentation
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.