| Safe Haskell | Safe-Inferred |
|---|---|
| Language | GHC2021 |
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
Instances
| Accept HTML Source # | text/html;charset=utf-8 |
Defined in Servant.API.ContentTypes.Lucid | |
| ToHtml a => MimeRender HTML a Source # | |
Defined in Servant.API.ContentTypes.Lucid Methods mimeRender :: Proxy HTML -> a -> ByteString # | |