Safe Haskell | None |
---|---|
Language | Haskell2010 |
- displayDate :: UTCTime -> String
- postsToHtml :: [Post] -> Html
- postToHtml :: Post -> Html
- data Format
- getOutputExtension :: Format -> String
- newtype Title = Title {}
- data Post = Post {}
- parseAbsoluteDate :: String -> Either String UTCTime
- parseAbsoluteDate' :: String -> Maybe UTCTime
- getMeta :: (Meta -> [Inline]) -> Pandoc -> Either String String
- createPost :: Show a => Format -> String -> Either a Pandoc -> Either String Post
- splitExtension :: String -> Maybe (String, String)
- fileToPost :: String -> IO (Either String Post)
- injectIndex :: String -> Html -> Maybe String
- injectTemplate :: String -> Post -> Maybe String
- injectAt :: [Tag String] -> String -> String -> Maybe String
- writeHTML :: String -> Post -> Maybe (IO ())
Documentation
displayDate :: UTCTime -> String Source #
postsToHtml :: [Post] -> Html Source #
postToHtml :: Post -> Html Source #
getOutputExtension :: Format -> String Source #
parseAbsoluteDate' :: String -> Maybe UTCTime Source #
Valid formats: | 6 January 2012 | January 6, 2012 | 9:47AM 6 January 2012 | 9:47AM January 6, 2012
createPost :: Show a => Format -> String -> Either a Pandoc -> Either String Post Source #
Creates a post given a constructor for a post