Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- die :: forall (a :: Type) b c m. (Typeable a, Show b, MonadError String m) => Proxy a -> b -> m c
- die' :: forall (a :: Type) b c m. (Typeable a, Show b, MonadError String m) => Maybe String -> Proxy a -> b -> m c
- type Attrs = Map Name ST
- elemToNodes :: HasCallStack => Element -> [Node]
- nodesToElem :: HasCallStack => [Node] -> Element
- docToNodes :: HasCallStack => Document -> [Node]
- nodesToDoc :: HasCallStack => [Node] -> Document
- mkDocument :: Element -> Document
- defPrologue :: Prologue
- defMiscellaneous :: [Miscellaneous]
- hxtToConduit :: MonadError String m => XmlTree -> m Document
- conduitToHxt :: MonadError String m => Document -> m XmlTree
- samlToConduit :: (MonadError String m, XmlPickler a) => a -> m Document
- docToXML' :: XmlTree -> ByteString
- xmlToDoc' :: MonadError String m => ByteString -> m XmlTree
- stripWhitespace :: Document -> Document
- mergeContentSiblings :: Document -> Document
- normalizeDoc :: Document -> Document
- repairNamespaces :: HasCallStack => [Node] -> [Node]
- repairNamespacesEl :: HasCallStack => Element -> Element
Documentation
die :: forall (a :: Type) b c m. (Typeable a, Show b, MonadError String m) => Proxy a -> b -> m c Source #
die' :: forall (a :: Type) b c m. (Typeable a, Show b, MonadError String m) => Maybe String -> Proxy a -> b -> m c Source #
elemToNodes :: HasCallStack => Element -> [Node] Source #
nodesToElem :: HasCallStack => [Node] -> Element Source #
docToNodes :: HasCallStack => Document -> [Node] Source #
nodesToDoc :: HasCallStack => [Node] -> Document Source #
mkDocument :: Element -> Document Source #
hxtToConduit :: MonadError String m => XmlTree -> m Document Source #
conduitToHxt :: MonadError String m => Document -> m XmlTree Source #
samlToConduit :: (MonadError String m, XmlPickler a) => a -> m Document Source #
docToXML' :: XmlTree -> ByteString Source #
This is subtly different from HS.docToXML' and should probably be moved to hsaml2.
xmlToDoc' :: MonadError String m => ByteString -> m XmlTree Source #
This is subtly different from HS.xmlToDoc' and should probably be moved to hsaml2.
stripWhitespace :: Document -> Document Source #
Remove all whitespace in the text nodes of the xml document.
mergeContentSiblings :: Document -> Document Source #
if two content nodes are next to each other, concatenate them into one. NB: if you call
stripWhitespace
it should be called *after* mergeContentSiblings
, or some two words will be
merged into one.
normalizeDoc :: Document -> Document Source #
repairNamespaces :: HasCallStack => [Node] -> [Node] Source #