@@ -6,11 +6,13 @@
66-- so it behaves reasonable well on ill-formed documents from the open Web.
77--
88module Text.HTML.Parser
9− ( TagName, AttrName, AttrValue
9+ ( -- * Parsing
10+ token
11+ , tagStream
12+ -- * Types
1013 , Token(..)
14+ , TagName, AttrName, AttrValue
1115 , Attr(..)
12− , token
13− , tagStream
1416 ) where
1517
1618import Data.Char hiding (isSpace)
@@ -28,8 +30,13 @@ import Data.Text.Lazy.Builder (Builder)
2830import qualified Data.Text.Lazy.Builder as B
2931import Prelude hiding (take, takeWhile)
3032
33+-- | A tag name (e.g. @body@)
3134type TagName = Text
35+
36+-- | An attribute name (e.g. @href@)
3237type AttrName = Text
38+
39+-- | The value of an attribute
3340type AttrValue = Text
3441
3542-- | An HTML token