Shpadoinkle-html-0.3.0.2: A typed, template generated Html DSL, and helpers.

Safe HaskellNone
LanguageHaskell2010

Shpadoinkle.Html.Utils

Synopsis

Documentation

addStyle Source #

Arguments

:: MonadJSM m 
=> Text

The URI for the href attribute

-> m () 

Add a stylesheet to the page via link tag.

addInlineStyle :: ToJSString css => MonadJSM m => css -> m () Source #

setTitle :: MonadJSM m => Text -> m () Source #

addMeta :: MonadJSM m => [(Text, Text)] -> m () Source #

treatEmpty :: Foldable f => Functor f => a -> (f a -> a) -> (b -> a) -> f b -> a Source #