Safe Haskell | None |
---|---|
Language | GHC2021 |
Web.Atomic.Html
Synopsis
- data Html a = Html {}
- el :: Html () -> Html ()
- tag :: Text -> Html () -> Html ()
- text :: Text -> Html ()
- none :: Html ()
- raw :: Text -> Html ()
- data Element = Element {}
- data Node
- mapElement :: (Element -> Element) -> Html a -> Html a
- mapNodeElement :: (Element -> Element) -> Node -> Node
- element :: Text -> Element
- htmlCSSRules :: Html a -> Map Selector Rule
- nodeCSSRules :: Node -> Map Selector Rule
- elementCSSRules :: Element -> Map Selector Rule
- elementClasses :: Element -> [ClassName]
Documentation
Html monad
import Web.Atomic example = doel
~ pad 10 $ doel
~ fontSize 24 . bold $ "My Links" a@
href "hoogle.haskell.org" ~ link $ "Hoogle" a@
href "hackage.haskell.org" ~ link $ "Hackage" link = underline . color Primary a =tag
"a" href =att
"href"
Instances
Applicative Html Source # | |
Functor Html Source # | |
Monad Html Source # | |
Attributable (Html a) Source # | |
Styleable (Html a) Source # | |
IsString (Html ()) Source # | |
Defined in Web.Atomic.Html Methods fromString :: String -> Html () # | |
IsList (Html ()) Source # | |
type Item (Html ()) Source # | |
Defined in Web.Atomic.Html |
A single Html
element. Note that the class attribute is generated separately from the css rules, rather than the attributes
Instances
IsString Node Source # | |
Defined in Web.Atomic.Html Methods fromString :: String -> Node # |
elementClasses :: Element -> [ClassName] Source #