Safe Haskell | None |
---|---|
Language | Haskell2010 |
- data ParseException = ParseException String
- n :: Text -> Name
- class FromCursor a where
- class FromAttrVal a where
- fromAttribute :: FromAttrVal a => Name -> Cursor -> [a]
- fromAttributeDef :: FromAttrVal a => Name -> a -> Cursor -> [a]
- maybeAttribute :: FromAttrVal a => Name -> Cursor -> [Maybe a]
- maybeElementValue :: FromAttrVal a => Name -> Cursor -> [Maybe a]
- maybeElementValueDef :: FromAttrVal a => Name -> a -> Cursor -> [Maybe a]
- maybeBoolElemValue :: Name -> Cursor -> [Maybe Bool]
- maybeFromElement :: FromCursor a => Name -> Cursor -> [Maybe a]
- readSuccess :: a -> Either String (a, Text)
- readFailure :: Text -> Either String (a, Text)
- invalidText :: Text -> Text -> Either String (a, Text)
- defaultReadFailure :: Either String (a, Text)
- boolean :: Monad m => Text -> m Bool
- decimal :: (Monad m, Integral a) => Text -> m a
- rational :: Monad m => Text -> m Double
Documentation
data ParseException Source #
class FromCursor a where Source #
fromCursor :: Cursor -> [a] Source #
class FromAttrVal a where Source #
fromAttrVal :: Reader a Source #
fromAttribute :: FromAttrVal a => Name -> Cursor -> [a] Source #
required attribute parsing
fromAttributeDef :: FromAttrVal a => Name -> a -> Cursor -> [a] Source #
parsing optional attributes with defaults
maybeAttribute :: FromAttrVal a => Name -> Cursor -> [Maybe a] Source #
parsing optional attributes
maybeElementValue :: FromAttrVal a => Name -> Cursor -> [Maybe a] Source #
maybeElementValueDef :: FromAttrVal a => Name -> a -> Cursor -> [Maybe a] Source #
maybeFromElement :: FromCursor a => Name -> Cursor -> [Maybe a] Source #