Text.HTML.Chunks is a clone with improvements of the Perl HTML::Chunks module. My apologies to those of you who already feel ill at this point...
http://www.wellquite.org/chunks or http://www.wellquite.org/non-blog/chunks-browseable/doc/ The main achievement is the use of template-haskell to combine the template into the code at compile time. This then allows for static checking that the variables/fields that the templates are expecting are indeed being provided and that the templates the code is trying to use do indeed exist. The template is then incorporated within the code, removing the dependency on the template. The downside is that if you ever change the template you must recompile the code - this may be considered a good thing as it ensures that the template is rechecked before it can be used: no more tweaking parts of the template and forgetting to update all the use-points. Download at http://www.wellquite.org/non-blog/chunks-2007-3-25.tgz Any comments, patches, bug reports etc gratefully received. Many thanks, Matthew _______________________________________________ Haskell mailing list [email protected] http://www.haskell.org/mailman/listinfo/haskell
