mediawiki-0.2: Interfacing with the MediaWiki APISource codeContentsIndex
MediaWiki.API.Utils
Portabilityportable
Stabilityprovisional
MaintainerSigbjorn Finne <sof@forkIO.com>
Description
MediaWiki API internal utility functions.
Synopsis
pNodes :: String -> [Element] -> [Element]
pNode :: String -> [Element] -> Maybe Element
pLeaf :: String -> [Element] -> Maybe String
pAttr :: String -> Element -> Maybe String
pMany :: String -> (Element -> Maybe a) -> [Element] -> [a]
children :: Element -> [Element]
nsName :: String -> QName
without :: [String] -> [Attr] -> [Attr]
parseDoc :: (Element -> Maybe a) -> String -> Either (String, [String]) a
xmlContinue :: String -> String -> Element -> Maybe String
mbDef :: a -> Maybe a -> Maybe a
readMb :: Read a => String -> Maybe a
piped :: [String] -> String
opt :: String -> String -> Maybe (String, String)
optB :: String -> Bool -> Maybe (String, String)
opt1 :: String -> [String] -> Maybe (String, String)
mbOpt :: String -> (a -> String) -> Maybe a -> Maybe (String, String)
fromMaybe :: a -> Maybe a -> a
Documentation
pNodes :: String -> [Element] -> [Element]Source
pNode :: String -> [Element] -> Maybe ElementSource
pLeaf :: String -> [Element] -> Maybe StringSource
pAttr :: String -> Element -> Maybe StringSource
pMany :: String -> (Element -> Maybe a) -> [Element] -> [a]Source
children :: Element -> [Element]Source
nsName :: String -> QNameSource
without :: [String] -> [Attr] -> [Attr]Source
parseDoc :: (Element -> Maybe a) -> String -> Either (String, [String]) aSource
xmlContinue :: String -> String -> Element -> Maybe StringSource
mbDef :: a -> Maybe a -> Maybe aSource
readMb :: Read a => String -> Maybe aSource
piped :: [String] -> StringSource
opt :: String -> String -> Maybe (String, String)Source
optB :: String -> Bool -> Maybe (String, String)Source
opt1 :: String -> [String] -> Maybe (String, String)Source
mbOpt :: String -> (a -> String) -> Maybe a -> Maybe (String, String)Source
fromMaybe :: a -> Maybe a -> aSource
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.
Produced by Haddock version 2.7.2