Safe Haskell | None |
---|---|
Language | Haskell2010 |
- class FromDom a where
- proxyFromDom :: forall proxy m a. (FromDom a, Monad m) => proxy a -> DomParserT Identity m a
- elementFromDom :: Monad m => DomParserT Identity m Element
- textFromDom :: Monad m => DomParserT Identity m Text
- stringFromDom :: Monad m => DomParserT Identity m String
- charFromDom :: Monad m => DomParserT Identity m Char
- intFromDom :: Monad m => DomParserT Identity m Int
- integerFromDom :: Monad m => DomParserT Identity m Integer
- doubleFromDom :: Monad m => DomParserT Identity m Double
- fixedFromDom :: (Monad m, Typeable a, HasResolution a) => DomParserT Identity m (Fixed a)
- boolFromDom :: Monad m => DomParserT Identity m Bool
- unitFromDom :: Monad m => DomParserT Identity m ()
- voidFromDom :: Monad m => DomParserT Identity m Void
- scientificFromDom :: Monad m => DomParserT Identity m Scientific
FromDom
class FromDom a where Source #
Class of types which can be parsed from single XML element. The
method fromDom
is convenient default to use with inElem
FromDom Bool Source # | |
FromDom Char Source # | |
FromDom Double Source # | |
FromDom Int Source # | |
FromDom Integer Source # | |
FromDom () Source # | |
FromDom Text Source # | |
FromDom String Source # | |
FromDom Void Source # | |
FromDom Scientific Source # | |
FromDom Element Source # | |
(HasResolution a, Typeable * a) => FromDom (Fixed a) Source # | |
proxyFromDom :: forall proxy m a. (FromDom a, Monad m) => proxy a -> DomParserT Identity m a Source #
Explicit methods for convenience
elementFromDom :: Monad m => DomParserT Identity m Element Source #
textFromDom :: Monad m => DomParserT Identity m Text Source #
stringFromDom :: Monad m => DomParserT Identity m String Source #
charFromDom :: Monad m => DomParserT Identity m Char Source #
intFromDom :: Monad m => DomParserT Identity m Int Source #
integerFromDom :: Monad m => DomParserT Identity m Integer Source #
doubleFromDom :: Monad m => DomParserT Identity m Double Source #
fixedFromDom :: (Monad m, Typeable a, HasResolution a) => DomParserT Identity m (Fixed a) Source #
boolFromDom :: Monad m => DomParserT Identity m Bool Source #
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 () Source #
Always successfully parses any DOM to ()
voidFromDom :: Monad m => DomParserT Identity m Void Source #
Never parses successfully. It is just empty
scientificFromDom :: Monad m => DomParserT Identity m Scientific Source #