| Copyright | (c) 2008-2010 Robert Greayer 2012 Brent Yorgey |
|---|---|
| License | GPL (see LICENSE) |
| Maintainer | Brent Yorgey <byorgey@gmail.com> |
| Safe Haskell | None |
| Language | Haskell2010 |
Text.BlogLiterately.Post
Description
Uploading posts to the server and fetching posts from the server.
- mkPost :: String -> String -> [String] -> [String] -> Bool -> [(String, Value)]
- mkArray :: XmlRpcType [a] => String -> [a] -> [(String, Value)]
- postIt :: BlogLiterately -> String -> IO ()
- getPostURL :: String -> String -> String -> String -> IO (Maybe String)
- findTitle :: Int -> String -> String -> String -> String -> IO (Maybe String)
Documentation
Arguments
| :: String | Post title |
| -> String | Post content |
| -> [String] | List of categories |
| -> [String] | List of tags |
| -> Bool |
|
| -> [(String, Value)] |
Prepare a post for uploading by creating something of the proper form to be an argument to an XML-RPC call.
mkArray :: XmlRpcType [a] => String -> [a] -> [(String, Value)] Source #
Given a name and a list of values, create a named "array" field suitable for inclusion in an XML-RPC struct.
postIt :: BlogLiterately -> String -> IO () Source #
Given a configuration and a formatted post, upload it to the server.