BlogLiterately-0.8.6.1: 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 and fetching posts from 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.

getPostURL :: String -> String -> String -> String -> IO (Maybe String) Source #

Get the URL for a given post.

findTitle :: Int -> String -> String -> String -> String -> IO (Maybe String) Source #

Look at the last n posts and find the most recent whose title contains the search term (case insensitive); return its permalink URL.