-- Wraps a string of random characters that, when using an appropriate
-- @IdGenerator@, is guaranteed to be unique for the Xmpp session.
@ -777,8 +761,7 @@ langTagParser = do
@@ -777,8 +761,7 @@ langTagParser = do
subtag::AP.ParserText.Text
subtag=do
AP.skip(=='-')
subtag<-tag
returnsubtag
tag
tagChars::[Char]
tagChars=['a'..'z']++['A'..'Z']
@ -875,7 +858,7 @@ data Jid = Jid { -- | The @localpart@ of a JID is an optional identifier placed
@@ -875,7 +858,7 @@ data Jid = Jid { -- | The @localpart@ of a JID is an optional identifier placed
-- the entity associated with an XMPP localpart at a domain
-- (i.e., @localpart\@domainpart/resourcepart@).
,resourcepart::!(MaybeText)
}derivingEq
}deriving(Eq,Ord)
instanceShowJidwhere
show(Jidnddmnres)=
@ -958,9 +941,9 @@ jidParts = do
@@ -958,9 +941,9 @@ jidParts = do
-- Case 2: We found a '/'; the JID is in the form
-- domainpart/resourcepart.
<|>do
b<-resourcePartP
b'<-resourcePartP
AP.endOfInput
return(Nothing,a,Justb)
return(Nothing,a,Justb')
-- Case 3: We have reached EOF; we have an JID consisting of only a