Commit Graph

81 Commits

Author SHA1 Message Date
Alp Mestanogullari
5e9c467239 code cleanup 2015-06-23 18:42:34 +02:00
vi
efbbaa4315 Deprecated Text.Taggy.Combinators; use taggy-lens instead. 2015-05-09 23:39:08 +08:00
Alp Mestanogullari
e17889e109 Merge pull request #10 from joneshf/master
Allow compilation with 7.10.
2015-05-08 15:32:31 +01:00
joneshf
367c3d33bb Allow compilation with 7.10.
`elem` moved to `Foldable` so with the `OverloadedStrings`,
type signatures are needed.
2015-05-06 19:12:28 -07:00
vi
9013b491a9 Fixed README documentation references.
Prompted by <https://github.com/alpmestan/taggy-lens/issues/2>.
2015-03-12 09:44:08 +00:00
Alp Mestanogullari
6d318295b1 add agda page in tests, bump version 2015-02-26 15:39:05 +01:00
Alp Mestanogullari
af4de67540 be more permissive with spaces within closing tags 2015-02-26 15:37:10 +01:00
Alp Mestanogullari
50ffc16541 accept <? and ?>, useful for parsing XML, especially sitemaps. bump version 2015-01-06 15:55:02 +01:00
vi
c0c5646df3 Use HQ nixpkgs, which now includes a /homeless-shelter/ fix. 2014-09-06 02:38:26 +08:00
Alp Mestanogullari
b9df6e468d Merge pull request #8 from alpmestan/nix
Added a nix derivation, intended for the shell.
2014-09-04 09:47:08 +02:00
vi
272ad3852c Added a nix derivation, intended for the shell. 2014-09-04 06:21:58 +08:00
vi
7415647682 Bump version to 0.1.2 2014-07-25 18:27:19 +08:00
vi
1e68aba60e Remove -Werror. 2014-07-25 17:36:00 +08:00
vi
35c7636f0e Lenient attribute parser: non-empty sequence of any charatcter but [>=]. 2014-07-25 17:30:02 +08:00
vi
f56acd06e4 A test suite to validate a successful parse on each html_files/*html. 2014-07-25 17:27:50 +08:00
vi
986af3de9f (Forgivingly) permit semicolons in attribute names.. 2014-07-25 15:12:02 +08:00
vi
c2ed0062d0 Don't choke on trailing newlines. 2014-07-25 14:22:34 +08:00
vi
9f9480c049 (Forgivingly) permit ["/.] in attribute names. 2014-07-25 13:47:57 +08:00
vi
9880f64013 'Text.Taggy.Parser.tagtext' should always consume input or fail:
The 'takeTill' combinator always passes, and will return an empty string
if the predicate passes on the first character of input.. this can lead
to infinite loops in the context of 'run'.. Instead use 'takeWhile1'
with the negation of the predicate.
2014-07-25 13:02:13 +08:00
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