Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Documentation
class FromXenoNode a where Source #
Instances
maybeChild :: ByteString -> ChildCollector (Maybe Node) Source #
requireChild :: ByteString -> ChildCollector Node Source #
childList :: ByteString -> ChildCollector [Node] Source #
maybeFromChild :: FromXenoNode a => ByteString -> ChildCollector (Maybe a) Source #
fromChild :: FromXenoNode a => ByteString -> ChildCollector a Source #
fromChildList :: FromXenoNode a => ByteString -> ChildCollector [a] Source #
maybeParse :: ByteString -> (Node -> Either Text a) -> ChildCollector (Maybe a) Source #
requireAndParse :: ByteString -> (Node -> Either Text a) -> ChildCollector a Source #
childListAny :: FromXenoNode a => Node -> Either Text [a] Source #
maybeElementVal :: FromAttrBs a => ByteString -> ChildCollector (Maybe a) Source #
toAttrParser :: Either Text a -> AttrParser a Source #
class FromAttrBs a where Source #
fromAttrBs :: ByteString -> Either Text a Source #
Instances
unexpectedAttrBs :: Text -> ByteString -> Either Text a Source #
maybeAttrBs :: ByteString -> AttrParser (Maybe ByteString) Source #
maybeAttr :: FromAttrBs a => ByteString -> AttrParser (Maybe a) Source #
fromAttr :: FromAttrBs a => ByteString -> AttrParser a Source #
fromAttrDef :: FromAttrBs a => ByteString -> a -> AttrParser a Source #
contentBs :: Node -> ByteString Source #
nsPrefixes :: Node -> NsPrefixes Source #
addPrefix :: NsPrefixes -> ByteString -> ByteString -> ByteString Source #