Maintainer | bastiaan.heeren@ou.nl |
---|---|
Stability | provisional |
Portability | portable (depends on ghc) |
Safe Haskell | Safe |
Language | Haskell98 |
A datatype, parser, and pretty printer for XML documents. Re-exports functions defined elsewhere.
- type XML = Element
- type Attr = Attribute
- type AttrList = Attributes
- data Element = Element {
- name :: Name
- attributes :: Attributes
- content :: Content
- class InXML a where
- data XMLBuilder
- makeXML :: String -> XMLBuilder -> XML
- parseXML :: String -> Either String XML
- parseXMLFile :: FilePath -> IO XML
- compactXML :: Element -> String
- findAttribute :: Monad m => String -> Element -> m String
- children :: Element -> [Element]
- data Attribute = Name := String
- fromBuilder :: XMLBuilder -> Maybe Element
- findChild :: Monad m => String -> Element -> m Element
- findChildren :: String -> Element -> [Element]
- getData :: Element -> String
- class (Semigroup a, Monoid a) => BuildXML a where
- module Data.Monoid
- (<>) :: Semigroup a => a -> a -> a
- munless :: Monoid a => Bool -> a -> a
- mwhen :: Monoid a => Bool -> a -> a
Documentation
type AttrList = Attributes Source #
Element | |
|
data XMLBuilder Source #
compactXML :: Element -> String Source #
fromBuilder :: XMLBuilder -> Maybe Element Source #
module Data.Monoid