servant-lucid-0.7.1: Servant support for lucid

Safe HaskellNone
LanguageHaskell2010

Servant.HTML.Lucid

Description

An HTML empty data type with MimeRender instances for lucid's ToHtml class and Html datatype. You should only need to import this module for it's instances and the HTML datatype.:

>>> type Eg = Get '[HTML] a

Will then check that a has a ToHtml instance, or is Html.

Synopsis

Documentation

data HTML Source #

Instances

Accept * HTML Source #
text/html;charset=utf-8

Methods

contentType :: Proxy HTML ctype -> MediaType #

ToHtml a => MimeRender * HTML a Source # 

Methods

mimeRender :: Proxy HTML a -> a -> ByteString #

MimeRender * HTML (Html a) Source # 

Methods

mimeRender :: Proxy HTML (Html a) -> a -> ByteString #