Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Failed to load latest commit information.
src use text
.gitignore more element / attr
LICENSE better license template
Nemesis no titan
Setup.lhs init bump version init
moe.cabal doc file copy right

Moe: html with style


first page

-- test.hs

import Prelude hiding ((/), (-), head, (>), (.), div)
import Air.Light ((-))
import Text.HTML.Moe2

test_page :: String
test_page = render -
  html - do
    head - do
      meta ! [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"

main :: IO ()
main = putStrLn test_page

install and run

cabal update
cabal install moe

runghc test.hs


    <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
Something went wrong with that request. Please try again.