git.iko.soy/typeable/html-parse
on master help sign in
Rearrange export list
5b0b020Ben Gamari
Text/HTML/Parser.hs+10−3
@@ -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.
7--
7--
8module Text.HTML.Parser
8module Text.HTML.Parser
9− ( TagName, AttrName, AttrValue
9+ ( -- * Parsing
10+ token
11+ , tagStream
12+ -- * Types
10 , Token(..)
13 , Token(..)
14+ , TagName, AttrName, AttrValue
11 , Attr(..)
15 , Attr(..)
12− , token
13− , tagStream
14 ) where
16 ) where
15
17
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)
30
32
33+-- | A tag name (e.g. @body@)
31type TagName = Text
34type TagName = Text
35+
36+-- | An attribute name (e.g. @href@)
32type AttrName = Text
37type AttrName = Text
38+
39+-- | The value of an attribute
33type AttrValue = Text
40type AttrValue = Text
34
41
35-- | An HTML token
42-- | An HTML token