[Haskell-cafe] ANN: moe html combinator

Jinjing Wang nfjinjing at gmail.com
Fri Aug 28 01:08:58 EDT 2009

hand written html is fine, except for the closing tags:

what if

      html' - do
        head' - do
            [http_equiv "Content-Type", content "text/html; charset-utf-8"] (/)
          title' - str "my title"
          link [rel "icon", _type "image/png", href "panda_icon.png"] (/)

        body' - do
          div [_class "container"] - do
            str "hello world"


        <meta http-equiv="Content-Type" content="text/html; charset-utf-8">
          my title
        <link rel="icon" type="image/png" href="panda_icon.png">
        <div class="container">
          hello world

That's moe. There's also extra dsl sugar / flavors for your
convienence, including (currently available) markdown and kawaii.

It's a new library, tries to bring some haskell fun back to web
programming, so .. enjoy.

- moe: http://hackage.haskell.org/package/moe


More information about the Haskell-Cafe mailing list