In favour of


Haml-like template files that are compile-time checked (deprecated)

Version on this page:1.2.0
LTS Haskell 10.10:1.2.0
Stackage Nightly 2018-03-10:1.2.0
Latest on Hackage:1.2.0

See all snapshots hamlet appears in

MIT licensed and maintained by Michael Snoyman

Module documentation for 1.2.0

There are no documented modules for this package.

Hamlet gives you a type-safe tool for generating HTML code. It works via Quasi-Quoting, and generating extremely efficient output code. The syntax is white-space sensitive, and it helps you avoid cross-site scripting issues and 404 errors. Please see the documentation at for more details.

Here is a quick overview of hamlet html. Due to haddock escaping issues, we can't properly show variable insertion, but we are still going to show some conditionals. Please see for a thorough description

        <title>Hamlet Demo
        <h1>Information on John Doe
            $if isMarried person
                Not married
comments powered byDisqus