@@ -6,11 +6,13 @@
6-- so it behaves reasonable well on ill-formed documents from the open Web.
6-- so it behaves reasonable well on ill-formed documents from the open Web.
8module Text.HTML.Parser
8module Text.HTML.Parser
9− ( TagName, AttrName, AttrValue
9+ ( -- * Parsing
10 , Token(..)
13 , Token(..)
14+ , TagName, AttrName, AttrValue
11 , Attr(..)
15 , Attr(..)
16import Data.Char hiding (isSpace)
18import Data.Char hiding (isSpace)
@@ -28,8 +30,13 @@ import Data.Text.Lazy.Builder (Builder)
28import qualified Data.Text.Lazy.Builder as B
30import qualified Data.Text.Lazy.Builder as B
29import Prelude hiding (take, takeWhile)
31import Prelude hiding (take, takeWhile)
33+-- | A tag name (e.g. @body@)
31type TagName = Text
34type TagName = Text
36+-- | An attribute name (e.g. @href@)
32type AttrName = Text
37type AttrName = Text
39+-- | The value of an attribute
33type AttrValue = Text
40type AttrValue = Text
35-- | An HTML token
42-- | An HTML token