on master help sign in
Some module doc comments
commit3eb8ee0e4d0d1d6f6e51610e9ee5ab9ceb268ae1 authorNeil Mitchell <ndmitchell@gmail.com> dateWed 30 Nov 2016, 19:08 (10 years ago) parent77eb3cb
1 file changed+3
src/Text/XML/Hexml.hs+3
src/Text/XML/Hexml.hs+3
@@ -1,5 +1,7 @@
11{-# LANGUAGE RecordWildCards #-}
22
3+-- | A module for first-approximation parsing of XML.
4+-- Note that entities, e.g. @&amp;@, are not expanded.
35module Text.XML.Hexml(
46 Document, Node, Attribute(..),
57 documentParse, documentRender, documentNode,
@@ -56,6 +58,7 @@ foreign import ccall node_attributes :: Ptr CDocument -> Ptr CNode -> Ptr CInt -
5658foreign import ccall node_childBy :: Ptr CDocument -> Ptr CNode -> Ptr CNode -> CString -> CInt -> IO (Ptr CNode)
5759foreign import ccall node_attributeBy :: Ptr CDocument -> Ptr CNode -> CString -> CInt -> IO (Ptr CAttr)
5860
61+-- | An XML document, created by 'documentParse'.
5962data Document = Document BS.ByteString (ForeignPtr CDocument)
6063
6164data Node = Node BS.ByteString (ForeignPtr CDocument) (Ptr CNode)