git.iko.soy/typeable/html-parse
on master help sign in
A few haddock comments
commitbb9af9f807b088bee733359ccd74c6d9e53eeefd authorBen Gamari <ben@smart-cactus.org> dateWed 13 Apr 2016, 22:47 (11 years ago) parent1523c97
1 file changed+3−1
Text/HTML/Parser.hs+3−1
Text/HTML/Parser.hs+3−1
@@ -29,12 +29,13 @@ type TagName = Text
2929type AttrName = Text
3030type AttrValue = Text
3131
32+-- | An HTML token
3233data Token
3334 -- | An opening tag. Attribute ordering is arbitrary
3435 = TagOpen !TagName [Attr]
3536 -- | A closing tag.
3637 | TagClose !TagName
37− -- | A text between tags.
38+ -- | The content between tags.
3839 | ContentChar !Char
3940 | ContentText !Text
4041 -- | Contents of a comment.
@@ -43,6 +44,7 @@ data Token
4344 | Doctype !Text
4445 deriving (Show, Ord, Eq, Generic)
4546
47+-- | An attribute of a tag
4648data Attr = Attr !AttrName !AttrValue
4749 deriving (Show, Eq, Ord)
4850