git.iko.soy/typeable/html-parse
on master help sign in
cabal: Add a bit of an example to the description
commit2c53d0f1fdd5c9ccd70e49e01c3c5ca0483ede25 authorBen Gamari <ben@smart-cactus.org> dateMon 9 Jan 2017, 13:08 (10 years ago) parentebdd5fa
1 file changed+7
html-parse.cabal+7
html-parse.cabal+7
@@ -9,6 +9,13 @@ description:
99 The package targets similar use-cases to the venerable @tagsoup@ library,
1010 but is significantly more efficient, achieving parsing speeds of over 50
1111 megabytes per second on modern hardware with and typical web documents.
12+ .
13+ For instance,
14+ .
15+ >>> parseTokens "<div><h1 class=widget>Hello World</h1><br/>"
16+ [TagOpen "div" [],TagOpen "h1" [Attr "class" "widget"],
17+ ContentText "Hello World",TagClose "h1",TagSelfClose "br" []]
18+
1219homepage: http://github.com/bgamari/html-parse
1320license: BSD3
1421license-file: LICENSE