dom-parser-0.1.1: Simple monadic DOM parser

Safe HaskellNone
LanguageHaskell2010

Text.XML.DOM.Parser.Class

Contents

Synopsis

FromDom

class FromDom a where Source #

Class of types which can be parsed from single XML element.

Minimal complete definition

fromDom

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

Explicit methods for convenience

unionFromDom :: (Monad m, FromDom (Union as)) => proxy as -> DomParserT Identity m (Union as) Source #

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

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

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

Always successfully parses any DOM to ()

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

Never parses successfully. It is just mzero