Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell98 |
Synopsis
- data T name str = Cons {
- name_ :: Name name
- attributes_ :: [T name str]
- type Filter name str = T name str -> T name str
- cons :: (Tag name, Attribute name) => Name name -> [T name str] -> T name str
- name :: T (T name str) (Name name)
- attributes :: T (T name str) [T name str]
- checkName :: (Name name -> Bool) -> T name str -> Bool
- checkAttributes :: ([T name str] -> Bool) -> T name str -> Bool
- lift :: (Name name -> [T name str] -> (Name name, [T name str])) -> Filter name str
- processAttrs :: (Tag name, Attribute name) => (Name name -> Bool) -> ([T name str] -> [T name str]) -> Filter name str
- processAttrValue :: (Tag name, Attribute name) => (Name name, Name name) -> (str -> str) -> Filter name str
- processAttrValueCond :: (Tag name, Attribute name) => (Name name, Name name) -> ([T name str] -> Bool) -> (str -> str) -> Filter name str
- processAttrsA :: (Tag name, Attribute name, Applicative m) => (Name name -> Bool) -> ([T name str] -> m [T name str]) -> T name str -> m (T name str)
- processAttrValueA :: (Tag name, Attribute name, Applicative m) => (Name name, Name name) -> (str -> m str) -> T name str -> m (T name str)
- processAttrValueCondA :: (Tag name, Attribute name, Applicative m) => (Name name, Name name) -> ([T name str] -> Bool) -> (str -> m str) -> T name str -> m (T name str)
- liftA :: (Tag name, Attribute name, Applicative m) => (Name name -> [T name str] -> m (Name name, [T name str])) -> T name str -> m (T name str)
- format :: (Tag name, Attribute name, C string) => (Name name -> Bool) -> ShowS -> T name string -> [ShowS] -> ShowS
Documentation
Cons | |
|
Instances
Foldable (T name) Source # | |
Defined in Text.XML.WraXML.Element fold :: Monoid m => T name m -> m # foldMap :: Monoid m => (a -> m) -> T name a -> m # foldMap' :: Monoid m => (a -> m) -> T name a -> m # foldr :: (a -> b -> b) -> b -> T name a -> b # foldr' :: (a -> b -> b) -> b -> T name a -> b # foldl :: (b -> a -> b) -> b -> T name a -> b # foldl' :: (b -> a -> b) -> b -> T name a -> b # foldr1 :: (a -> a -> a) -> T name a -> a # foldl1 :: (a -> a -> a) -> T name a -> a # elem :: Eq a => a -> T name a -> Bool # maximum :: Ord a => T name a -> a # minimum :: Ord a => T name a -> a # | |
Traversable (T name) Source # | |
Functor (T name) Source # | |
(Attribute name, Show name, Show str) => Show (T name str) Source # | |
tests
modification
processAttrs :: (Tag name, Attribute name) => (Name name -> Bool) -> ([T name str] -> [T name str]) -> Filter name str Source #
process the attribute list of a specific tag
processAttrValue :: (Tag name, Attribute name) => (Name name, Name name) -> (str -> str) -> Filter name str Source #
processAttrValueCond :: (Tag name, Attribute name) => (Name name, Name name) -> ([T name str] -> Bool) -> (str -> str) -> Filter name str Source #
monadic modification
processAttrsA :: (Tag name, Attribute name, Applicative m) => (Name name -> Bool) -> ([T name str] -> m [T name str]) -> T name str -> m (T name str) Source #
process the attribute list of a specific tag
processAttrValueA :: (Tag name, Attribute name, Applicative m) => (Name name, Name name) -> (str -> m str) -> T name str -> m (T name str) Source #
processAttrValueCondA :: (Tag name, Attribute name, Applicative m) => (Name name, Name name) -> ([T name str] -> Bool) -> (str -> m str) -> T name str -> m (T name str) Source #
liftA :: (Tag name, Attribute name, Applicative m) => (Name name -> [T name str] -> m (Name name, [T name str])) -> T name str -> m (T name str) Source #