mediawiki-0.2.1: Interfacing with the MediaWiki API

Portabilityportable
Stabilityprovisional
MaintainerSigbjorn Finne <sof@forkIO.com>

MediaWiki.API

Description

A Haskell MediaWiki API binding.

Synopsis

Documentation

webGet :: URLString -> Request -> IO StringSource

webGet url req issues a GET to a MediaWiki server, appending api.php? followed by the request req to the URL base url.

webPost :: Maybe User -> URLString -> String -> Request -> IO ([(String, String)], String)Source

webGet mbUser url req issues a POST to a MediaWiki server, appending api.php? followed by the request req to the URL base url.

handleMW :: (MediaWikiError -> IO a) -> IO a -> IO aSource

catchMW :: IO a -> (MediaWikiError -> IO a) -> IO aSource