O'Reilly logo

Haskell Cookbook by Yogesh Sajanikar

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Using blaze to create an HTML template

In this recipe, we will be using the blaze-html library to construct HTML documents. The blaze-html library provides very efficient and fast DSL for constructing HTML documents. It is very lightweight and supports efficient UNICODE support. Being that it is embedded inside Haskell, one can also take full advantage of Haskell while constructing HTML documents. It also supports HTML5 and HTML4 strict syntax.

Note that the aim of the recipe is not to showcase HTML, but the interoperability between Haskell and HTML through blaze-html.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required