Commit Graph

101 Commits

Author SHA1 Message Date
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
Alp Mestanogullari
6cb4460f77 hopefully last travis fix 2014-06-12 15:33:56 +02:00
Alp Mestanogullari
52d5bfb90c fix travis and make the example support several files at a time 2014-06-12 15:21:18 +02:00
Alp Mestanogullari
65d7daf3cc another travis fix attempt 2014-06-12 14:28:51 +02:00
Alp Mestanogullari
40fcf976ce fix travis 2014-06-12 14:24:10 +02:00
Alp Mestanogullari
6c8c9f6a05 update example 2014-06-12 14:15:21 +02:00
Alp Mestanogullari
9cbb261583 readme update 2014-06-12 14:13:14 +02:00
Alp Mestanogullari
af8e70bdd6 improve the DOM module's correctness 2014-06-12 14:13:05 +02:00
Alp Mestanogullari
995796047e travis 2014-06-05 14:13:06 +02:00
Alp Mestanogullari
a9dac8c435 clean up because of warnings - -Wall doesn't have anything interesting to say anymore 2014-06-03 12:14:39 +02:00
Alp Mestanogullari
9583cda388 tentative beginning at a DOM interface 2014-06-03 00:10:17 +02:00
Alp Mestanogullari
da4ce0f90a Create README.md 2014-06-02 21:25:35 +02:00