moe: html with style

[ bsd3, library, web ] [ Propose Tags ]

a purely functional html combinator with a clean syntax

[Skip to Readme]
Versions [faq] 2009.8.23, 2009.8.26, 2009.8.28, 2009.9.1, 2009.9.1.1, 2009.9.2, 2009.9.16, 2009.11.3, 2010.9.29, 2010.9.29.1, 2010.9.29.2, 2011.6.11, 2011.6.14, 2013.6.22, 2014.4.14, 2014.11.17, 2015.5.4
Change log
Dependencies base (==4.*), bytestring, data-default, dlist, mps (>=2009.8.18.1), mtl, utf8-string [details]
License BSD-3-Clause
Author Wang, Jinjing
Maintainer Wang, Jinjing <>
Category Web
Home page
Uploaded by JinjingWang at 2009-09-01T23:05:59Z
Distributions NixOS:2015.5.4
Downloads 9855 total (29 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Hackage Matrix CI
Docs uploaded by user
Build status unknown [no reports yet]




Maintainer's Corner

For package maintainers and hackage trustees

Readme for moe-2009.9.2

[back to package description]

Moe: html with style


first page

-- test.hs

import Prelude hiding ((/), (-), head, (>), (.), div)
import MPS.Light ((-))
import Text.HTML.Moe

test_page :: String
test_page = render -
  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"

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