Spock-lucid-0.3.0.0: Lucid support for Spock

Safe HaskellNone
LanguageHaskell2010

Web.Spock.Lucid

Synopsis

Documentation

lucid :: MonadIO m => Html a -> ActionCtxT cxt m a Source

Render HTML and send as response body. Content-type will be text/html.

lucidIO :: MonadIO m => HtmlT IO a -> ActionCtxT cxt m a Source

Like lucid, but for HtmlT IO.

lucidT :: MonadIO m => HtmlT m a -> ActionCtxT cxt m a Source

Like lucid, but for arbitrary monads. Might require some additional boilerplate.