haskell-xmpp-2.0.1: Haskell XMPP (eXtensible Message Passing Protocol, a.k.a. Jabber) library
Copyright(c) riskbook 2020
LicenseBSD3
Safe HaskellNone
LanguageHaskell2010

Network.XMPP.XML

Description

 
Synopsis

Documentation

strAttr :: a -> String -> (a, CFilter i) Source #

getVals :: Text -> [Content Posn] -> [Text] Source #

Returns strings extracted by xtract query

isVal :: Text -> Text -> [Content Posn] -> Bool Source #

Queries xml for specific value isVal str = any (== str) . getVals

txtpat Source #

Arguments

:: Text

xtract-like pattern to match

-> Content Posn

message being processed

-> Text

result of extraction

Extract text from `Content Posn' with supplied pattern

xtractp :: (Text -> Text) -> Text -> Content i -> Bool Source #

mread :: Read a => Text -> Maybe a Source #

mattr :: Show a => b -> Maybe a -> [(b, CFilter i)] Source #

mattr' :: a -> Maybe String -> [(a, CFilter i)] Source #

literal :: String -> CFilter i #

Build some textual content.

class FromXML a where Source #

Instances

Instances details
FromXML () Source # 
Instance details

Defined in Network.XMPP.XML

FromXML XmppField Source # 
Instance details

Defined in Network.XMPP.XEP.Form

FromXML XmppForm Source # 
Instance details

Defined in Network.XMPP.XEP.Form

FromXML MAMPayload Source # 
Instance details

Defined in Network.XMPP.XEP.MAM

FromXML MUCPayload Source # 
Instance details

Defined in Network.XMPP.XEP.MUC

(FromXML a, FromXML b) => FromXML (Either a b) Source # 
Instance details

Defined in Network.XMPP.XML

class ToXML a where Source #

Methods

encodeXml :: a -> [Node] Source #

Instances

Instances details
ToXML XmppForm Source # 
Instance details

Defined in Network.XMPP.XEP.Form

Methods

encodeXml :: XmppForm -> [Node] Source #

ToXML RoomMembersList Source # 
Instance details

Defined in Network.XMPP.XEP.MUC