{-# OPTIONS_GHC -fno-warn-missing-signatures #-} {-# LANGUAGE NoMonomorphismRestriction #-} module Medium where import Html import qualified Html.Attribute as A helloWorld x = html_ ( head_ ( title_ x ) # body_ ( p_ "Hello World!" ) ) table (n, m) = table_ . replicate n . tr_ $ map td_ [(1::Int)..m] page x = html_ ( body_ ( h1_ ( img_ # strong_ (0 :: Int) ) # div_ ( div_ (1 :: Int) ) # div_ ( form_ ( fieldset_ ( div_ ( div_ ( label_ "a" # select_ ( option_ "b" # option_ "c" ) # div_ "d" ) # i_ x ) # button_ (i_ "e") ) ) ) ) ) attrShort x = i_A (A.accesskey_ "a") ( i_A (A.class_ "b") ( i_A (A.contenteditable_ "c") ( i_A (A.contextmenu_ "d") ( i_A (A.dir_ "e") ( i_A (A.draggable_ "f") ( i_A A.hidden_ ( i_A (A.id_ "h") ( i_A (A.itemprop_ "i") ( i_A (A.lang_ "j") ( i_A (A.spellcheck_ "k") ( i_A (A.style_ "l") ( i_A (A.title_ x) "m")))))))))))) attrLong x = i_A ( A.accesskey_ "a" # A.class_ "b" # A.contenteditable_ "c" # A.contextmenu_ "d" # A.dir_ "e" # A.draggable_ "f" # A.hidden_ # A.id_ "h" # A.itemprop_ "i" # A.lang_ "j" # A.spellcheck_ "k" # A.style_ "l" # A.title_ x ) "m" pageA x = html_ ( body_ ( h1_A (A.id_ "a") ( img_ # strong_A (A.class_ "b") (0 :: Int) ) # div_ ( div_A (A.id_ "c") (1 :: Int) ) # div_ ( form_A (A.class_ "d") ( fieldset_ ( div_A (A.id_ "e") ( div_ ( label_A (A.class_ "f") "h" # select_ ( option_A (A.id_ "i") "j" # option_ "k" ) # div_A (A.class_ "l") "m" ) # i_ x ) # button_A (A.id_ "n") (i_ "o") ) ) ) ) )