Newsletter
Join the Community
Subscribe to our newsletter for the latest news and updates
A blazingly fast HTML combinator library for Haskell.
BlazeHtml is an open-source Haskell library that generates HTML markup through composable combinator functions, aiming to be the fastest way to produce HTML in Haskell.
BlazeHtml is a Haskell combinator library for generating HTML, distributed on Hackage as the blaze-html package and maintained by jaspervdj on GitHub. It accepts Haskell expressions built from element and attribute combinators and outputs HTML markup, so developers write and type-check markup entirely inside Haskell code instead of concatenating strings. The project's stated goal is to be the fastest way to generate HTML in Haskell, and it ships a test suite and a benchmark suite to verify that claim. A companion tool, blaze-from-html, has moved to a separate repository.
make combinators produces these modules before building.make test runs the project's tests to verify behavior.make benchmark runs performance benchmarks to measure generation speed.The repository uses a Makefile for common tasks. Because part of the code is generated automatically, you first run make combinators to produce the derived modules, then build your project against them. Tests are run with make test and benchmarks with make benchmark.
Yes — BlazeHtml is an open-source Haskell library distributed through Hackage, with its source hosted on GitHub under the jaspervdj organization and monitored by a Haskell-CI workflow.
Yes — the repository includes a benchmark suite that you can run with make benchmark. The project's stated goal of being the fastest way to generate HTML in Haskell is measured against this suite.
From the repository root, run make test to execute the test suite. Before building the project, run make combinators first, because part of the combinator code is generated automatically.
The blaze-from-html tool has moved to its own repository at github.com/jaspervdj/blaze-from-html, separate from the main blaze-html repository.
BlazeHtml takes Haskell expressions composed from HTML combinators and produces HTML markup as its output, so you can build and serialize full pages without concatenating strings.
