BlogLiterately-0.7.1.9: A tool for posting Haskelly articles to blogs

Copyright(c) 2008-2010 Robert Greayer, 2012 Brent Yorgey
LicenseGPL (see LICENSE)
MaintainerBrent Yorgey <byorgey@gmail.com>
Safe HaskellNone
LanguageHaskell2010

Text.BlogLiterately.Post

Description

Uploading posts to the server.

Synopsis

Documentation

mkPost Source

Arguments

:: String

Post title

-> String

Post content

-> [String]

List of categories

-> [String]

List of tags

-> Bool

True = page, False = post

-> [(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.