Safe Haskell | None |
---|
- class IsXML a where
- xmlPickler :: PU [Node] a
- toXML :: IsXML a => a -> ByteString
- toIndentedXML :: IsXML a => Int -> a -> ByteString
- fromXML :: IsXML a => ByteString -> Either String a
- type Node = NNode ByteString
- data XMLPU t a = XMLPU {
- pickleTree :: a -> t
- unpickleTree :: t -> Either String a
- root :: Maybe (NName ByteString)
- data XMLOptions = XMLOptions {}
- defaultXMLOptions :: XMLOptions
- namespacedXMLOptions :: ByteString -> XMLOptions
- type XMLGeneric a = (Generic a, GIsXML (Rep a)) => PU [Node] a
- genericXMLPickler :: (Generic x, GIsXML (Rep x)) => XMLOptions -> PU [Node] x
- xpWrap :: (a -> b, b -> a) -> PU [n] a -> PU [n] b
- xpList :: PU [Node] a -> PU [Node] [a]
- xpElemList :: NName ByteString -> PU [Node] a -> PU [Node] [a]
- xpElem :: NName ByteString -> PU [Node] a -> PU [Node] a
- xpSum :: PU [t] (f r) -> PU [t] (g r) -> PU [t] ((f :+: g) r)
- xpEither :: PU [t] a -> PU [t] b -> PU [t] (Either a b)
- xpPrim :: (Read a, Show a) => PU ByteString a
- xpOption :: PU [n] a -> PU [n] (Maybe a)
- xpPair :: PU [n] a -> PU [n] b -> PU [n] (a, b)
- xpTriple :: PU [n] a -> PU [n] b -> PU [n] c -> PU [n] (a, b, c)
- xp4Tuple :: PU [n] a -> PU [n] b -> PU [n] c -> PU [n] d -> PU [n] (a, b, c, d)
- xp5Tuple :: PU [n] a -> PU [n] b -> PU [n] c -> PU [n] d -> PU [n] e -> PU [n] (a, b, c, d, e)
- xp6Tuple :: PU [n] a -> PU [n] b -> PU [n] c -> PU [n] d -> PU [n] e -> PU [n] f -> PU [n] (a, b, c, d, e, f)
- xpUnit :: PU [n] ()
- xpLift :: a -> PU [n] a
- xpEmpty :: (Read a, Show a) => Maybe ByteString -> PU [Node] a
- xpConst :: Show a => ByteString -> a -> XMLPU [Node] a
- xpText :: PU ByteString ByteString
- xpText0 :: PU ByteString ByteString
- xpContent :: PU ByteString a -> PU [Node] a
- module Text.XML.Expat.Internal.Namespaced
- module Text.XML.Expat.Internal.Qualified
Class
xmlPickler :: PU [Node] aSource
Functions
toXML :: IsXML a => a -> ByteStringSource
toIndentedXML :: IsXML a => Int -> a -> ByteStringSource
Data Types
type Node = NNode ByteStringSource
XMLPU | |
|
Options
data XMLOptions Source
XMLOptions | |
|
Generics
type XMLGeneric a = (Generic a, GIsXML (Rep a)) => PU [Node] aSource
genericXMLPickler :: (Generic x, GIsXML (Rep x)) => XMLOptions -> PU [Node] xSource
Combinators
xpElemList :: NName ByteString -> PU [Node] a -> PU [Node] [a]Source
xpPrim :: (Read a, Show a) => PU ByteString aSource
xp5Tuple :: PU [n] a -> PU [n] b -> PU [n] c -> PU [n] d -> PU [n] e -> PU [n] (a, b, c, d, e)Source
xp6Tuple :: PU [n] a -> PU [n] b -> PU [n] c -> PU [n] d -> PU [n] e -> PU [n] f -> PU [n] (a, b, c, d, e, f)Source
xpText :: PU ByteString ByteStringSource
xpContent :: PU ByteString a -> PU [Node] aSource