Copyright | (C) 2016-2025 David M. Johnson |
---|---|
License | BSD3-style (see the file LICENSE) |
Maintainer | David M. Johnson <code@dmj.io> |
Stability | experimental |
Portability | non-portable |
Safe Haskell | None |
Language | Haskell2010 |
Miso.Render
Contents
Description
Synopsis
- class ToHtml a where
- toHtml :: a -> ByteString
- data HTML
Classes
Class for rendering HTML
Methods
toHtml :: a -> ByteString Source #
Instances
ToHtml (View a) Source # | Render a |
Defined in Miso.Render Methods toHtml :: View a -> ByteString Source # | |
ToHtml [View a] Source # | Render a |
Defined in Miso.Render Methods toHtml :: [View a] -> ByteString Source # |
Combinator
HTML MimeType used for servant APIs
type Home = "home" :> Get '[HTML] (Component model action)
Instances
Accept HTML Source # | text/html;charset=utf-8 |
Defined in Miso.Render | |
ToHtml a => MimeRender HTML a Source # | Render HTML from a servant API |
Defined in Miso.Render Methods mimeRender :: Proxy HTML -> a -> ByteString Source # |