CINXE.COM
mediawiki: Interfacing with the MediaWiki API
<!DOCTYPE html> <html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <link href="https://fonts.googleapis.com/css?family=PT+Sans:400,400i,700" rel="stylesheet"> <link rel="stylesheet" href="/static/hackage.css" type="text/css" /> <link rel="icon" type="image/png" href="/static/favicon.png" /> <link rel="search" type="application/opensearchdescription+xml" title="Hackage" href="/packages/opensearch.xml" /> <title> mediawiki: Interfacing with the MediaWiki API </title> <meta name="twitter:card" content="summary" /> <meta name="twitter:site" content="@hackage" /> <meta property="og:url" content="//hackage.haskell.org/package/mediawiki" /> <meta property="og:site_name" content="Hackage" /> <meta property="og:type" content="website"> <meta property="og:title" content="mediawiki" /> <meta property="og:description" content="Interfacing with the MediaWiki API" /> <link rel="canonical" href="https://hackage.haskell.org/package/mediawiki" /> <script src="/static/jquery.min.js"></script> <script src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-chtml-full.js" type="text/javascript"></script> <base href="//hackage.haskell.org/package/mediawiki-0.2.6/" /> </head> <body> <div id="page-header"> <a class="caption" href="/">Hackage :: [Package]</a> <ul class="links" id="page-menu"> <li> <form action="/packages/search" method="get" class="search"> <button type="submit">Search </button> <input type="text" name="terms" /> </form> </li> <li><a href="/packages/browse">Browse</a></li> <li><a href="/packages/recent">What's new</a></li> <li><a href="/upload">Upload</a></li> <li><a href="/accounts">User accounts</a></li> </ul> </div> <div id="content"> <h1><a href="//hackage.haskell.org/package/mediawiki">mediawiki</a>: <small>Interfacing with the MediaWiki API</small></h1> <div style="font-size: small"> [ <a href="/packages/tag/bsd3">bsd3</a>, <a href="/packages/tag/library">library</a>, <a href="/packages/tag/program">program</a>, <a href="/packages/tag/web">web</a> ] [ <a href="/package/mediawiki/tags/edit">Propose Tags</a> ] [ <a href="https://github.com/haskell/security-advisories/blob/main/CONTRIBUTING.md">Report a vulnerability</a> ] </div> <div id="flex-container"> <div id="left-pane"> <div id="description"> <p>A complete Haskell binding to the MediaWiki API letting you programmatically access (read and write) MediaWiki content.</p><p>See <a href="http://www.mediawiki.org/wiki/API">http://www.mediawiki.org/wiki/API</a> and <a href="http://haskell.forkio.com/">http://haskell.forkio.com/</a> for more.</p> <hr> [<a href="#readme">Skip to Readme</a>] </div> <div id="badges" style="margin-top: 20px;"> <a href="reports/1"> <img src="https://img.shields.io/static/v1?label=Build&message=InstallOk&color=success" /> </a> <img src="https://img.shields.io/static/v1?label=Documentation&message=Available&color=success" /> </div> <div id="modules"> <h2>Modules</h2><p style="font-size: small">[<a href="/package/mediawiki-0.2.6/docs/doc-index.html">Index</a>]</p><div id="module-list"><ul class="modules"><li><i>MediaWiki</i><ul class="modules"><li><span class="module"><a href="/package/mediawiki-0.2.6/docs/MediaWiki-API.html">MediaWiki.API</a></span><ul class="modules"><li><i>Action</i><ul class="modules"><li><span class="module"><a href="/package/mediawiki-0.2.6/docs/MediaWiki-API-Action-Block.html">MediaWiki.API.Action.Block</a></span></li><li><span class="module"><a href="/package/mediawiki-0.2.6/docs/MediaWiki-API-Action-Delete.html">MediaWiki.API.Action.Delete</a></span></li><li><span class="module"><a href="/package/mediawiki-0.2.6/docs/MediaWiki-API-Action-Edit.html">MediaWiki.API.Action.Edit</a></span></li><li><span class="module"><a href="/package/mediawiki-0.2.6/docs/MediaWiki-API-Action-EmailUser.html">MediaWiki.API.Action.EmailUser</a></span></li><li><span class="module"><a href="/package/mediawiki-0.2.6/docs/MediaWiki-API-Action-ExpandTemplates.html">MediaWiki.API.Action.ExpandTemplates</a></span><ul class="modules"><li><span class="module"><a href="/package/mediawiki-0.2.6/docs/MediaWiki-API-Action-ExpandTemplates-Import.html">MediaWiki.API.Action.ExpandTemplates.Import</a></span></li></ul></li><li><span class="module"><a href="/package/mediawiki-0.2.6/docs/MediaWiki-API-Action-FeedWatchlist.html">MediaWiki.API.Action.FeedWatchlist</a></span></li><li><span class="module"><a href="/package/mediawiki-0.2.6/docs/MediaWiki-API-Action-Login.html">MediaWiki.API.Action.Login</a></span><ul class="modules"><li><span class="module"><a href="/package/mediawiki-0.2.6/docs/MediaWiki-API-Action-Login-Import.html">MediaWiki.API.Action.Login.Import</a></span></li></ul></li><li><span class="module"><a href="/package/mediawiki-0.2.6/docs/MediaWiki-API-Action-Move.html">MediaWiki.API.Action.Move</a></span></li><li><span class="module"><a href="/package/mediawiki-0.2.6/docs/MediaWiki-API-Action-OpenSearch.html">MediaWiki.API.Action.OpenSearch</a></span></li><li><span class="module"><a href="/package/mediawiki-0.2.6/docs/MediaWiki-API-Action-ParamInfo.html">MediaWiki.API.Action.ParamInfo</a></span></li><li><span class="module"><a href="/package/mediawiki-0.2.6/docs/MediaWiki-API-Action-Parse.html">MediaWiki.API.Action.Parse</a></span><ul class="modules"><li><span class="module"><a href="/package/mediawiki-0.2.6/docs/MediaWiki-API-Action-Parse-Import.html">MediaWiki.API.Action.Parse.Import</a></span></li></ul></li><li><span class="module"><a href="/package/mediawiki-0.2.6/docs/MediaWiki-API-Action-Protect.html">MediaWiki.API.Action.Protect</a></span></li><li><span class="module"><a href="/package/mediawiki-0.2.6/docs/MediaWiki-API-Action-Rollback.html">MediaWiki.API.Action.Rollback</a></span></li><li><span class="module"><a href="/package/mediawiki-0.2.6/docs/MediaWiki-API-Action-Sitematrix.html">MediaWiki.API.Action.Sitematrix</a></span></li><li><span class="module"><a href="/package/mediawiki-0.2.6/docs/MediaWiki-API-Action-Unblock.html">MediaWiki.API.Action.Unblock</a></span></li><li><span class="module"><a href="/package/mediawiki-0.2.6/docs/MediaWiki-API-Action-Undelete.html">MediaWiki.API.Action.Undelete</a></span></li><li><span class="module"><a href="/package/mediawiki-0.2.6/docs/MediaWiki-API-Action-Watch.html">MediaWiki.API.Action.Watch</a></span></li></ul></li><li><span class="module"><a href="/package/mediawiki-0.2.6/docs/MediaWiki-API-Base.html">MediaWiki.API.Base</a></span></li><li><span class="module"><a href="/package/mediawiki-0.2.6/docs/MediaWiki-API-Output.html">MediaWiki.API.Output</a></span></li><li><i>Query</i><ul class="modules"><li><span class="module"><a href="/package/mediawiki-0.2.6/docs/MediaWiki-API-Query-AllCategories.html">MediaWiki.API.Query.AllCategories</a></span><ul class="modules"><li><span class="module"><a href="/package/mediawiki-0.2.6/docs/MediaWiki-API-Query-AllCategories-Import.html">MediaWiki.API.Query.AllCategories.Import</a></span></li></ul></li><li><span class="module"><a href="/package/mediawiki-0.2.6/docs/MediaWiki-API-Query-AllImages.html">MediaWiki.API.Query.AllImages</a></span><ul class="modules"><li><span class="module"><a href="/package/mediawiki-0.2.6/docs/MediaWiki-API-Query-AllImages-Import.html">MediaWiki.API.Query.AllImages.Import</a></span></li></ul></li><li><span class="module"><a href="/package/mediawiki-0.2.6/docs/MediaWiki-API-Query-AllLinks.html">MediaWiki.API.Query.AllLinks</a></span><ul class="modules"><li><span class="module"><a href="/package/mediawiki-0.2.6/docs/MediaWiki-API-Query-AllLinks-Import.html">MediaWiki.API.Query.AllLinks.Import</a></span></li></ul></li><li><span class="module"><a href="/package/mediawiki-0.2.6/docs/MediaWiki-API-Query-AllMessages.html">MediaWiki.API.Query.AllMessages</a></span><ul class="modules"><li><span class="module"><a href="/package/mediawiki-0.2.6/docs/MediaWiki-API-Query-AllMessages-Import.html">MediaWiki.API.Query.AllMessages.Import</a></span></li></ul></li><li><span class="module"><a href="/package/mediawiki-0.2.6/docs/MediaWiki-API-Query-AllPages.html">MediaWiki.API.Query.AllPages</a></span><ul class="modules"><li><span class="module"><a href="/package/mediawiki-0.2.6/docs/MediaWiki-API-Query-AllPages-Import.html">MediaWiki.API.Query.AllPages.Import</a></span></li></ul></li><li><span class="module"><a href="/package/mediawiki-0.2.6/docs/MediaWiki-API-Query-AllUsers.html">MediaWiki.API.Query.AllUsers</a></span><ul class="modules"><li><span class="module"><a href="/package/mediawiki-0.2.6/docs/MediaWiki-API-Query-AllUsers-Import.html">MediaWiki.API.Query.AllUsers.Import</a></span></li></ul></li><li><span class="module"><a href="/package/mediawiki-0.2.6/docs/MediaWiki-API-Query-BackLinks.html">MediaWiki.API.Query.BackLinks</a></span><ul class="modules"><li><span class="module"><a href="/package/mediawiki-0.2.6/docs/MediaWiki-API-Query-BackLinks-Import.html">MediaWiki.API.Query.BackLinks.Import</a></span></li></ul></li><li><span class="module"><a href="/package/mediawiki-0.2.6/docs/MediaWiki-API-Query-Blocks.html">MediaWiki.API.Query.Blocks</a></span><ul class="modules"><li><span class="module"><a href="/package/mediawiki-0.2.6/docs/MediaWiki-API-Query-Blocks-Import.html">MediaWiki.API.Query.Blocks.Import</a></span></li></ul></li><li><span class="module"><a href="/package/mediawiki-0.2.6/docs/MediaWiki-API-Query-Categories.html">MediaWiki.API.Query.Categories</a></span><ul class="modules"><li><span class="module"><a href="/package/mediawiki-0.2.6/docs/MediaWiki-API-Query-Categories-Import.html">MediaWiki.API.Query.Categories.Import</a></span></li></ul></li><li><span class="module"><a href="/package/mediawiki-0.2.6/docs/MediaWiki-API-Query-CategoryInfo.html">MediaWiki.API.Query.CategoryInfo</a></span><ul class="modules"><li><span class="module"><a href="/package/mediawiki-0.2.6/docs/MediaWiki-API-Query-CategoryInfo-Import.html">MediaWiki.API.Query.CategoryInfo.Import</a></span></li></ul></li><li><span class="module"><a href="/package/mediawiki-0.2.6/docs/MediaWiki-API-Query-CategoryMembers.html">MediaWiki.API.Query.CategoryMembers</a></span><ul class="modules"><li><span class="module"><a href="/package/mediawiki-0.2.6/docs/MediaWiki-API-Query-CategoryMembers-Import.html">MediaWiki.API.Query.CategoryMembers.Import</a></span></li></ul></li><li><span class="module"><a href="/package/mediawiki-0.2.6/docs/MediaWiki-API-Query-DeletedRevisions.html">MediaWiki.API.Query.DeletedRevisions</a></span><ul class="modules"><li><span class="module"><a href="/package/mediawiki-0.2.6/docs/MediaWiki-API-Query-DeletedRevisions-Import.html">MediaWiki.API.Query.DeletedRevisions.Import</a></span></li></ul></li><li><span class="module"><a href="/package/mediawiki-0.2.6/docs/MediaWiki-API-Query-EmbeddedIn.html">MediaWiki.API.Query.EmbeddedIn</a></span><ul class="modules"><li><span class="module"><a href="/package/mediawiki-0.2.6/docs/MediaWiki-API-Query-EmbeddedIn-Import.html">MediaWiki.API.Query.EmbeddedIn.Import</a></span></li></ul></li><li><span class="module"><a href="/package/mediawiki-0.2.6/docs/MediaWiki-API-Query-ExternalLinks.html">MediaWiki.API.Query.ExternalLinks</a></span><ul class="modules"><li><span class="module"><a href="/package/mediawiki-0.2.6/docs/MediaWiki-API-Query-ExternalLinks-Import.html">MediaWiki.API.Query.ExternalLinks.Import</a></span></li></ul></li><li><span class="module"><a href="/package/mediawiki-0.2.6/docs/MediaWiki-API-Query-ExternalURLUsage.html">MediaWiki.API.Query.ExternalURLUsage</a></span><ul class="modules"><li><span class="module"><a href="/package/mediawiki-0.2.6/docs/MediaWiki-API-Query-ExternalURLUsage-Import.html">MediaWiki.API.Query.ExternalURLUsage.Import</a></span></li></ul></li><li><span class="module"><a href="/package/mediawiki-0.2.6/docs/MediaWiki-API-Query-ImageInfo.html">MediaWiki.API.Query.ImageInfo</a></span><ul class="modules"><li><span class="module"><a href="/package/mediawiki-0.2.6/docs/MediaWiki-API-Query-ImageInfo-Import.html">MediaWiki.API.Query.ImageInfo.Import</a></span></li></ul></li><li><span class="module"><a href="/package/mediawiki-0.2.6/docs/MediaWiki-API-Query-ImageUsage.html">MediaWiki.API.Query.ImageUsage</a></span><ul class="modules"><li><span class="module"><a href="/package/mediawiki-0.2.6/docs/MediaWiki-API-Query-ImageUsage-Import.html">MediaWiki.API.Query.ImageUsage.Import</a></span></li></ul></li><li><span class="module"><a href="/package/mediawiki-0.2.6/docs/MediaWiki-API-Query-Images.html">MediaWiki.API.Query.Images</a></span><ul class="modules"><li><span class="module"><a href="/package/mediawiki-0.2.6/docs/MediaWiki-API-Query-Images-Import.html">MediaWiki.API.Query.Images.Import</a></span></li></ul></li><li><span class="module"><a href="/package/mediawiki-0.2.6/docs/MediaWiki-API-Query-Info.html">MediaWiki.API.Query.Info</a></span><ul class="modules"><li><span class="module"><a href="/package/mediawiki-0.2.6/docs/MediaWiki-API-Query-Info-Import.html">MediaWiki.API.Query.Info.Import</a></span></li></ul></li><li><span class="module"><a href="/package/mediawiki-0.2.6/docs/MediaWiki-API-Query-LangLinks.html">MediaWiki.API.Query.LangLinks</a></span><ul class="modules"><li><span class="module"><a href="/package/mediawiki-0.2.6/docs/MediaWiki-API-Query-LangLinks-Import.html">MediaWiki.API.Query.LangLinks.Import</a></span></li></ul></li><li><span class="module"><a href="/package/mediawiki-0.2.6/docs/MediaWiki-API-Query-Links.html">MediaWiki.API.Query.Links</a></span><ul class="modules"><li><span class="module"><a href="/package/mediawiki-0.2.6/docs/MediaWiki-API-Query-Links-Import.html">MediaWiki.API.Query.Links.Import</a></span></li></ul></li><li><span class="module"><a href="/package/mediawiki-0.2.6/docs/MediaWiki-API-Query-LogEvents.html">MediaWiki.API.Query.LogEvents</a></span><ul class="modules"><li><span class="module"><a href="/package/mediawiki-0.2.6/docs/MediaWiki-API-Query-LogEvents-Import.html">MediaWiki.API.Query.LogEvents.Import</a></span></li></ul></li><li><span class="module"><a href="/package/mediawiki-0.2.6/docs/MediaWiki-API-Query-Random.html">MediaWiki.API.Query.Random</a></span><ul class="modules"><li><span class="module"><a href="/package/mediawiki-0.2.6/docs/MediaWiki-API-Query-Random-Import.html">MediaWiki.API.Query.Random.Import</a></span></li></ul></li><li><span class="module"><a href="/package/mediawiki-0.2.6/docs/MediaWiki-API-Query-RecentChanges.html">MediaWiki.API.Query.RecentChanges</a></span><ul class="modules"><li><span class="module"><a href="/package/mediawiki-0.2.6/docs/MediaWiki-API-Query-RecentChanges-Import.html">MediaWiki.API.Query.RecentChanges.Import</a></span></li></ul></li><li><span class="module"><a href="/package/mediawiki-0.2.6/docs/MediaWiki-API-Query-Revisions.html">MediaWiki.API.Query.Revisions</a></span><ul class="modules"><li><span class="module"><a href="/package/mediawiki-0.2.6/docs/MediaWiki-API-Query-Revisions-Import.html">MediaWiki.API.Query.Revisions.Import</a></span></li></ul></li><li><span class="module"><a href="/package/mediawiki-0.2.6/docs/MediaWiki-API-Query-Search.html">MediaWiki.API.Query.Search</a></span><ul class="modules"><li><span class="module"><a href="/package/mediawiki-0.2.6/docs/MediaWiki-API-Query-Search-Import.html">MediaWiki.API.Query.Search.Import</a></span></li></ul></li><li><span class="module"><a href="/package/mediawiki-0.2.6/docs/MediaWiki-API-Query-SiteInfo.html">MediaWiki.API.Query.SiteInfo</a></span><ul class="modules"><li><span class="module"><a href="/package/mediawiki-0.2.6/docs/MediaWiki-API-Query-SiteInfo-Import.html">MediaWiki.API.Query.SiteInfo.Import</a></span></li></ul></li><li><span class="module"><a href="/package/mediawiki-0.2.6/docs/MediaWiki-API-Query-Templates.html">MediaWiki.API.Query.Templates</a></span><ul class="modules"><li><span class="module"><a href="/package/mediawiki-0.2.6/docs/MediaWiki-API-Query-Templates-Import.html">MediaWiki.API.Query.Templates.Import</a></span></li></ul></li><li><span class="module"><a href="/package/mediawiki-0.2.6/docs/MediaWiki-API-Query-UserContribs.html">MediaWiki.API.Query.UserContribs</a></span><ul class="modules"><li><span class="module"><a href="/package/mediawiki-0.2.6/docs/MediaWiki-API-Query-UserContribs-Import.html">MediaWiki.API.Query.UserContribs.Import</a></span></li></ul></li><li><span class="module"><a href="/package/mediawiki-0.2.6/docs/MediaWiki-API-Query-UserInfo.html">MediaWiki.API.Query.UserInfo</a></span><ul class="modules"><li><span class="module"><a href="/package/mediawiki-0.2.6/docs/MediaWiki-API-Query-UserInfo-Import.html">MediaWiki.API.Query.UserInfo.Import</a></span></li></ul></li><li><span class="module"><a href="/package/mediawiki-0.2.6/docs/MediaWiki-API-Query-Users.html">MediaWiki.API.Query.Users</a></span><ul class="modules"><li><span class="module"><a href="/package/mediawiki-0.2.6/docs/MediaWiki-API-Query-Users-Import.html">MediaWiki.API.Query.Users.Import</a></span></li></ul></li><li><span class="module"><a href="/package/mediawiki-0.2.6/docs/MediaWiki-API-Query-WatchList.html">MediaWiki.API.Query.WatchList</a></span><ul class="modules"><li><span class="module"><a href="/package/mediawiki-0.2.6/docs/MediaWiki-API-Query-WatchList-Import.html">MediaWiki.API.Query.WatchList.Import</a></span></li></ul></li></ul></li><li><span class="module"><a href="/package/mediawiki-0.2.6/docs/MediaWiki-API-Types.html">MediaWiki.API.Types</a></span></li><li><span class="module"><a href="/package/mediawiki-0.2.6/docs/MediaWiki-API-Utils.html">MediaWiki.API.Utils</a></span></li></ul></li><li><i>Util</i><ul class="modules"><li><i>Codec</i><ul class="modules"><li><span class="module"><a href="/package/mediawiki-0.2.6/docs/MediaWiki-Util-Codec-Percent.html">MediaWiki.Util.Codec.Percent</a></span></li><li><span class="module"><a href="/package/mediawiki-0.2.6/docs/MediaWiki-Util-Codec-URLEncoder.html">MediaWiki.Util.Codec.URLEncoder</a></span></li></ul></li><li><span class="module"><a href="/package/mediawiki-0.2.6/docs/MediaWiki-Util-Fetch.html">MediaWiki.Util.Fetch</a></span></li></ul></li></ul></li></ul></div> </div> <div id="downloads"> <h2>Downloads</h2><ul><li><a href="/package/mediawiki-0.2.6/mediawiki-0.2.6.tar.gz">mediawiki-0.2.6.tar.gz</a> [<a href="/package/mediawiki-0.2.6/src/">browse</a>] (Cabal source package)</li><li><a href="/package/mediawiki-0.2.6/mediawiki.cabal">Package description</a> (as included in the package)</li></ul> </div> <div id="maintainer-corner"> <h4>Maintainer's Corner</h4> <p><a href="/package/mediawiki/maintainers">Package maintainers</a></p> <ul> <li> <a href="/user/SigbjornFinne">SigbjornFinne</a> </li> </ul> <p>For package maintainers and hackage trustees</p> <ul> <li> <a href="//hackage.haskell.org/package/mediawiki/maintain"> edit package information </a> </li> </ul> <p>Candidates</p> <ul> <li> No Candidates </li> </ul> </div> </div><!-- /left-pane --> <div id="properties"> <table class="properties"> <tbody> <tr> <th>Versions <span style="font-weight:normal;font-size: small;">[<a href="/package/mediawiki.rss">RSS</a>]</span></th> <td><a href="/package/mediawiki-0.2">0.2</a>, <a href="/package/mediawiki-0.2.1">0.2.1</a>, <a href="/package/mediawiki-0.2.2">0.2.2</a>, <a href="/package/mediawiki-0.2.3">0.2.3</a>, <a href="/package/mediawiki-0.2.4">0.2.4</a>, <strong>0.2.6</strong></td> </tr> <tr> <th>Dependencies</th> <td><span style="white-space: nowrap"><a href="/package/base">base</a> (>=4 && <5)</span>, <span style="white-space: nowrap"><a href="/package/HTTP">HTTP</a> (>=3001)</span>, <span style="white-space: nowrap"><a href="/package/mediawiki">mediawiki</a></span>, <span style="white-space: nowrap"><a href="/package/mime">mime</a></span>, <span style="white-space: nowrap"><a href="/package/network">network</a></span>, <span style="white-space: nowrap"><a href="/package/pretty">pretty</a></span>, <span style="white-space: nowrap"><a href="/package/utf8-string">utf8-string</a></span>, <span style="white-space: nowrap"><a href="/package/xml">xml</a></span><span style="font-size: small"> [<a href="/package/mediawiki-0.2.6/dependencies">details</a>]</span></td> </tr> <tr> <th>License</th> <td class="word-wrap"><a href="/package/mediawiki-0.2.6/src/LICENSE">BSD-3-Clause</a></td> </tr> <tr> <th>Author</th> <td class="word-wrap">Sigbjorn Finne <sof@forkIO.com></td> </tr> <tr> <th>Maintainer</th> <td class="word-wrap">Sigbjorn Finne <sof@forkIO.com></td> </tr> <!-- Obsolete/deprecated 'Stability' field hidden c.f. http://stackoverflow.com/questions/3841218/conventions-for-stability-field-of-cabal-packages <tr> <th>Stability</th> <td>Unknown</td> </tr> --> <tr> <th>Category</th> <td><a href="/packages/#cat:Web">Web</a></td> </tr> <tr> <th>Uploaded</th> <td>by <a href="/user/SigbjornFinne">SigbjornFinne</a> at <span title="Wed Nov 20 22:37:59 UTC 2013">2013-11-20T22:37:59Z</span></td> </tr> <tr> <th>Distributions</th> <td></td> </tr> <tr> <th>Reverse Dependencies</th> <td>1 direct, 0 indirect <span style="font-size: small" class="revdepdetails"> [<a href="">details</a>]</span></td> </tr> <script> $('.revdepdetails').click(function(e) { e.preventDefault(); var html = '<div><b>Direct</b><br /><p><a href="/package/acme-everything">acme-everything</a></p></div><span style="font-size: small"> [<a href="/package/mediawiki/reverse">details</a>]</span>' modal.open({ content: html}); }); </script> <tr> <th>Executables</th> <td>linksTo, listCat, main</td> </tr> <tr> <th>Downloads</th> <td>4746 total (17 in the last 30 days)</td> </tr> <tr> <th> Rating</th> <td>(no votes yet) <span style="font-size: small">[estimated by <a href="https://en.wikipedia.org/wiki/Bayesian_average">Bayesian average</a>]</span></td> </tr> <tr> <th>Your Rating</th> <td> <ul class="star-rating"> <li class="star uncool" id="1">λ</li> <li class="star uncool" id="2">λ</li> <li class="star uncool" id="3">λ</li> </ul> </td> </tr> <tr> <th>Status</th> <td>Docs available <span style="font-size: small">[<a href="/package/mediawiki-0.2.6/reports/1">build log</a>]</span><br />Successful builds reported <span style="font-size: small">[<a href="/package/mediawiki-0.2.6/reports/">all 1 reports</a>]</span></td> </tr> </tbody> </table> </div> <!-- /properties --> </div><!-- /flex-container --> <hr /> <div id="readme-container"> <h2 id="readme">Readme for mediawiki-0.2.6</h2> [<a href="#description">back to package description</a>] <div class="embedded-author-content"><pre>= mediawiki - Accessing MediaWiki from Haskell = 'mediawiki' is a Haskell package providing a comprehensive binding to the programmatic interface to MediaWiki (aka, 'the MediaWiki API') - http://www.mediawiki.org/wiki/API The binding is allegedly complete (2008-11-17), letting you write applications in Haskell that accesses and (if enabled by target Wiki) manipulate content on MediaWiki pages. = Getting started = For some code samples showing you how to get started using this API binding, have a look in the examples/ directory. = Building and installing = This package is provided in Cabal form, so only thing you need to do to get going is: foo% runghc Setup configure foo% runghc Setup build foo% runghc Setup install The package depends on a bunch of other packages though, so you need to have them built&installed, as well. They are: * HTTP: http://hackage.haskell.org/cgi-bin/hackage-scripts/package/HTTP * xml: http://hackage.haskell.org/cgi-bin/hackage-scripts/package/xml * mime: http://hackage.haskell.org/cgi-bin/hackage-scripts/package/mime * utf8-string: http://hackage.haskell.org/cgi-bin/hackage-scripts/package/utf8-string = Feedback / question = Please send them to sof@forkIO.com , and I'll try to respond to them as best/quickly as possible. </pre></div> </div> </div> <!-- /content --> <style> div#overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: #000; opacity: 0.5; filter: alpha(opacity=50); } div#modal { position: absolute; width: 200px; background: rgba(0, 0, 0, 0.2); border-radius: 14px; padding: 8px; } div#modal #content { border-radius: 8px; padding: 20px; } div#modal #close { position: absolute; background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAbCAYAAABm409WAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAABCdJREFUeNqcVl1IbFUUnjNzr47enLFkvKUoDNk1S0kxDPHBH4gCTfHJH4jgYgrpg1APmqjQS2gggiLViyBdkEAxjARFSPBBfPCv/LcRS5tSlLzXMcdxZvWt3d6HmTkzXW8LPs45a6/1rbX3XmvvYzL9hxBRC/AjRZcD4BGQE41Di0JciMfnQDF/n5+fm2ZmZkxnZ2e6TWFhoSknJ4T3a03TmkxPE5C/q9JbX1+nmpoaslgsxEPhSE9Pp6GhIbq5uVEuU8DztyLv7e2NShwOzIRcLpdy/S4auQNws0VHR8etiIORmppKh4eHKshXkQLwZtH4+Pgzkyvk5+cHL1dOMLmTNV6vV6xrsFNxcTHV1tZSSkpKiL6srIyam5spLS0tRM97IuWRHsDv97ezZmRkxJDV3t4enZ6e0sDAADkcDqGrqqqizc1NwdLe3m7YeFXCeoBAIPADa8rLyw0BZmdnhfX19TX19fVRY2OjTg4/amhoMPisra2J8YuLizeY3wzDfVY4nU6DcW5uLq2srAiHy8tLQi+I96urK1EM8fHxBp/h4WGV1EMOYOF3VsTExETdPO4JJZx5T08Pmc3miPZc4iwej+dTMweAwxOOZLfbja2uaSabzcaFoOtQKSYkY0pISIhY8jzGgqLx8zMO0xXp8XKEZ1NZWUk7Ozv6smxvb6vsaHBwkJKTkw0+XOossP2AAzx3dHQkeqClpcVgPDY2pm9yW1sblZSU0OLiotD5fD6qqKgIsefu56pj6ezsfJ0DJMzNzX3MCt798ADd3d20sbFBXV1dhOXSj4apqSmanp6mvLy8EPvq6mpBfnJysoLvFBEAyHK73aL26uvrQxx4CYqKigzVkp2dTRkZGSHnFb9vbW2JAPPz84MqwD3glYmJiS954Pj4WDj+n6Oiv7//3w47ONjhEx24zwGsQDrw9tLS0s/qmH7WINwTSpqamrqgywXE0X0XSAYKkpKSPgL572zEGxW+XNHuhNHRUZ28tbX1G+jLgQwuINHJgA14ALyXmJj4GY6H35TD8vKyqB5utri4OEHKs+Py5Y7l7mbBrefDMfI9xj8E3gJeBGLVtRkr1+tN4H3gC1TPT1gyD91CJicnT7Kysr6F3yfAOzJ7Lh6LupMt3HDAC3I/MoFXgZfr6upeKy0tvV9QUHAvMzPzjtVq1fb39/27u7vehYWFx2gq1+rq6hZseWP5+QvwB/AY8GlBl/8dIF4GSQWcEmmAg08SOVO2vQE8AP8FuAE+ml3Ar8CfktzLB7UW9odxV87ELjee1/ElGSBRjvGeXQMXwKkkdMusOeATOe6P9NuiZhIr+8MuiW2yImJkAJ7BpSQ7B/6S73/zsnDmssoi/hdpkkQFskrEyhlqMjvO8ioIPqkPPPXHK2hMkwWgYFbXuCRThIFwYiX/CDAA8quvgv5A6LkAAAAASUVORK5CYII=) 0 0 no-repeat; width: 24px; height: 27px; display: block; text-indent: -9999px; top: -7px; right: -7px; } .cool { color: gold; text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000; } .uncool { color: white; text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000; } .star-rating { margin: 0; list-style-type: none; font-size: 150%; color: black; } .star-rating li { float: left; margin: 0 1% 0 1%; cursor: pointer; } .clear-rating { font-size: small; } </style> <script> // Modals var modal = (function() { var method = {}, overlay, modal, content, close; // Center the modal in the viewport method.center = function() { var top, left; top = Math.max($(window).height() - modal.outerHeight(), 0) / 2; left = Math.max($(window).width() - modal.outerWidth(), 0) / 2; modal.css({ top: top + $(window).scrollTop(), left: left + $(window).scrollLeft() }); }; // Open the modal method.open = function(settings) { content.empty().append(settings.content); modal.css({ width: settings.width || 'auto', height: settings.height || 'auto' }); method.center(); $(window).bind('resize.modal', method.center); modal.show(); overlay.show(); }; // Close the modal method.close = function() { modal.hide(); overlay.hide(); content.empty(); $(window).unbind('resize.modal'); }; // Generate the HTML and add it to the document overlay = $('<div id="overlay"></div>'); modal = $('<div id="modal"></div>'); content = $('<div id="content"></div>'); close = $('<a id="close" href="#">close</a>'); modal.hide(); overlay.hide(); modal.append(content, close); $(document).ready(function() { $('body').append(overlay, modal); }); close.click(function(e) { e.preventDefault(); method.close(); }); return method; }()); </script> <script> // Voting var votesUrl = '/package/mediawiki/votes'; var star = { "id" : undefined, "selected" : false }; $('.star').mouseenter(function() { if (star.selected === false) { fill_stars(this.id, "in"); } }); $('.star').mouseleave(function() { if (star.selected === false) { fill_stars(this.id, "out"); } }); $('.star').click(function() { fill_stars(3, "out"); fill_stars(this.id, "in"); star.selected = true; star.id = this.id; var formData = { score: this.id } $.post(votesUrl, formData).done(function(data) { if(data != "Package voted for successfully") { modal.open({ content: data}); } }); }); $('.clear-rating').click(function(e) { e.preventDefault() fill_stars(3, "out"); star.selected = false; $.ajax({ url: votesUrl, type: 'DELETE', success: function(result) { if(result != "Package vote removed successfully") { modal.open({ content: result }); } } }); }); $(function() { var userRating = parseInt($("#userRating").val(),10); if(userRating > 0) { fill_stars(userRating,"in") star.selected = true; star.id = userRating; } }); var fill_stars = function(num, direction) { if (direction === "in") for (i = 0; i <= parseInt(num); i++) $("#" + i).removeClass('uncool').addClass('cool'); else for (i = 0; i <= parseInt(num); i++) $("#" + i).removeClass('cool').addClass('uncool'); } </script> <div style="clear:both"></div> <div id="footer"> <p> Produced by <a href="/">hackage</a> and <a href="http://haskell.org/cabal/">Cabal</a> 3.12.1.0. </p> </div> </body> </html>