Commit Graph

62 Commits

Author SHA1 Message Date
Alp Mestanogullari
cc96a7cf6e version bump 2014-07-18 23:44:59 +02:00
Alp Mestanogullari
ed4f798288 add a test for tagnames with a dot in them and fix a previous test. fixes #7 2014-07-18 23:42:07 +02:00
Alp Mestanogullari
ed8d9f1644 make the parser accept tag names with .'s in them 2014-07-18 23:37:12 +02:00
Alp Mestanogullari
cffac61436 fix cabal description 2014-07-08 10:07:59 +02:00
Alp Mestanogullari
e63081dfdf one last cabal file tweak before release 2014-07-08 09:41:40 +02:00
Alp Mestanogullari
c6a5b9c855 add vi in Authors 2014-07-08 08:53:57 +02:00
Alp Mestanogullari
61585002ea set version to 0.1 and doc tweak 2014-07-08 08:51:35 +02:00
Alp Mestanogullari
7fdf455908 add a (test) spec for the entity conversion module -- it checks the behavior on named html entities and (decimal and hexadecimal) numeric html entities 2014-07-08 08:47:18 +02:00
Alp Mestanogullari
cfbc080c24 minor cabal file tweak 2014-07-08 08:30:32 +02:00
Alp Mestanogullari
20c45941ee convert numeric html entities too. fixes #6 2014-07-08 08:30:32 +02:00
vi
66b05584b7 Permissively parse malformed closing tags, specifically those missing ">". 2014-07-06 17:31:27 +08:00
Alp Mestanogullari
297c7d477c add haddocks in Parser module 2014-07-01 14:22:43 +02:00
Alp Mestanogullari
431c889ba9 fix haddocks for the Tag type 2014-07-01 14:19:41 +02:00
vi
15cf405c94 Some light documentation for Taggy.{Combinators,Renderer}. 2014-07-01 20:14:45 +08:00
Alp Mestanogullari
5c562ecc52 cabal file tweaks 2014-07-01 13:09:27 +02:00
Alp Mestanogullari
555981b2c8 expose internal parsers 2014-07-01 12:45:08 +02:00
Alp Mestanogullari
4db1d7a8d8 readme update 2014-07-01 12:25:39 +02:00
Alp Mestanogullari
c586d9c632 add a lot of documentation and also a 'parseDOM' function to directly go from Text to Nodes and Elements 2014-07-01 12:14:27 +02:00
vi
65c5288718 An option to control whether entities are converted during rendering. 2014-06-29 23:59:08 +08:00
vi
9a3affc7c5 Expose Renderer; otherwise the package is incomplete. 2014-06-26 20:17:45 +08:00
vi
edcf2b1433 A simple DOM tree renderer, using Blaze. 2014-06-26 19:51:23 +08:00
vi
04ac52ebd0 (Combinators./*): describes all subtrees (including the target) matching a given predicate. 2014-06-24 15:06:35 +08:00
vi
4f9300ba12 (Combinators.//) filters on trees, rather than subtrees. 2014-06-24 15:04:42 +08:00
vi
e7487d337c Combinators: trees extracts subtrees, including the target parent. 2014-06-24 15:04:04 +08:00
vi
349f7b7d50 Combinators: don't enable the ViewPatterns extension; use Kliesli composition in (/&). 2014-06-23 19:32:43 +08:00
vi
a9c6224541 Added subtrees combinator + miscellaneous refactoring. 2014-06-23 19:04:57 +08:00
Alp Mestanogullari
09f6e8d176 travis update: run tests 2014-06-23 12:20:37 +02:00
Alp Mestanogullari
ab63f21ebd Merge pull request #5 from fmapfmapfmap/combinators
Expose Text.Taggy.Combinators.
2014-06-23 12:09:36 +02:00
vi
6a59eb9b36 Expose Text.Taggy.Combinators. 2014-06-23 17:20:02 +08:00
Alp Mestanogullari
3b62ee0505 Merge pull request #4 from fmapfmapfmap/combinators
Two new combinators: hasName and (/&).
2014-06-23 10:36:28 +02:00
vi
a4e6b9466a Two new combinators: hasName and (/&). 2014-06-23 16:21:28 +08:00
Alp Mestanogullari
7b26531fe3 Merge pull request #3 from fmapfmapfmap/combinators
Some simple combinators on DOM-style documents.
2014-06-23 09:55:47 +02:00
Alp Mestanogullari
55085a9136 Merge pull request #2 from fmapfmapfmap/fix-readme
README correction; domify example.
2014-06-23 09:49:33 +02:00
Alp Mestanogullari
9f0d0c2568 Merge pull request #1 from fmapfmapfmap/simplify-tests
Use Test.Hspec.Attoparsec.
2014-06-23 09:47:46 +02:00
vi
1f60b9c9b5 An Element combinator to filter on an element and its children. 2014-06-23 15:43:47 +08:00
vi
b46ea8b696 Combinator on Element: innerText. 2014-06-23 15:03:51 +08:00
vi
773419b9a0 Two simple combinators on Element: getAttr and hasAttr. 2014-06-23 14:39:19 +08:00
vi
11b57a4bad Added .ghci; src is in scope of tests, always enable OverloadedStrings. 2014-06-23 14:38:55 +08:00
vi
c517ee1be5 Fix domify example in README. 2014-06-23 14:13:35 +08:00
vi
5a673ab3ff Remove main from ParserSpec; we've only one spec, so this is redundant with Spec.main. 2014-06-23 13:43:01 +08:00
vi
a608e0494d Define ~> as a specialisation of the version in Hspec.Attoparsec.Source. 2014-06-23 13:38:47 +08:00
vi
bee253e428 Remove definition of shouldParse (it's in hspec-attoparsec), and dependency on hspec-expectations. 2014-06-23 13:19:43 +08:00
Alp Mestanogullari
a00ddec046 readme update 2014-06-17 17:35:20 +02:00
Alp Mestanogullari
6fe72345cd readme update 2014-06-17 09:27:40 +02:00
Alp Mestanogullari
d950f899df readme update 2014-06-16 16:43:36 +02:00
Alp Mestanogullari
f70ec4a0be add some basic tests for the parser 2014-06-16 16:38:29 +02:00
Alp Mestanogullari
22bec0911a more forgiving auto-closing tag detection 2014-06-16 16:37:20 +02:00
Alp Mestanogullari
7bf1e35232 make the parser a bit more permissive so that it handles Zalora's HTML wel 2014-06-13 16:53:23 +02:00
Alp Mestanogullari
bb5e968958 add bench result 2014-06-13 10:14:03 +02:00
Alp Mestanogullari
c250d2320b add ability to convert special html entities to unicode 2014-06-12 20:44:44 +02:00