Develop
August 24, 2025 ยท View on GitHub
This package provides an HTML content type for use with servant APIs. This can be used to render miso View / Component types as HTML.
Usage
import Servant.Miso.Html (HTML)
type Home = "home" :> Get '[HTML] (Component model action)
type About = "about" :> Get '[HTML] (View model action)
type Contact = "contact" :> Get '[HTML] [View model action]
type API = Home :<|> About :<|> Contact
Build
cabal build
nix develop --command bash -c 'cabal build'
Develop
nix develop