dani-servant-lucid2-0.1.0.0: Servant support for lucid2
Safe HaskellSafe-Inferred
LanguageGHC2021

Servant.API.ContentTypes.Lucid

Description

Module copied and adapted from https://hackage.haskell.org/package/servant-lucid-0.9.0.6

An HTML empty data type with MimeRender instances for any type which is an instance of lucid2's ToHtml:

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

(Here the type a should have a ToHtml instance.)

Documentation

data HTML Source #

Instances

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

Defined in Servant.API.ContentTypes.Lucid

ToHtml a => MimeRender HTML a Source # 
Instance details

Defined in Servant.API.ContentTypes.Lucid

Methods

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