dom-parser-3.0.0: Simple monadic DOM parser

Safe HaskellNone
LanguageHaskell2010

Text.XML.DOM.Parser.FromDom

Contents

Synopsis

FromDom

class FromDom a where #

Class of types which can be parsed from single XML element. The method fromDom is convenient default to use with inElem

Minimal complete definition

fromDom

Methods

fromDom :: Monad m => DomParserT Identity m a #

proxyFromDom :: forall proxy m a. (FromDom a, Monad m) => proxy a -> DomParserT Identity m a #

Explicit methods for convenience

boolFromDom :: Monad m => DomParserT Identity m Bool #

Expects content to be y, yes, t, true or 1 for True Values n, no, f, false or 0 for False. Case is not significant, blank characters are striped.

unitFromDom :: Monad m => DomParserT Identity m () #

Always successfully parses any DOM to ()

voidFromDom :: Monad m => DomParserT Identity m Void #

Never parses successfully. It is just empty