mediawiki-0.2.3: Interfacing with the MediaWiki API

Portabilityportable
Stabilityprovisional
MaintainerSigbjorn Finne <sof@forkIO.com>

MediaWiki.API.Utils

Description

MediaWiki API internal utility functions.

Synopsis

Documentation

pMany :: String -> (Element -> Maybe a) -> [Element] -> [a]Source

without :: [String] -> [Attr] -> [Attr]Source

mbDef :: a -> Maybe a -> Maybe aSource

mbOpt :: String -> (a -> String) -> Maybe a -> Maybe (String, String)Source

fromMaybe :: a -> Maybe a -> a

The fromMaybe function takes a default value and and Maybe value. If the Maybe is Nothing, it returns the default values; otherwise, it returns the value contained in the Maybe.