servant-blaze-0.9.1: Blaze-html support for servant
Safe HaskellNone
LanguageHaskell2010

Servant.HTML.Blaze

Description

An HTML empty data type with MimeRender instances for blaze-html's ToMarkup class and Html datatype. You should only need to import this module for its instances and the HTML datatype:

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

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

Documentation

data HTML Source #

Instances

Instances details
Accept HTML Source #
text/html;charset=utf-8
Instance details

Defined in Servant.HTML.Blaze

ToMarkup a => MimeRender HTML a Source # 
Instance details

Defined in Servant.HTML.Blaze

Methods

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