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

Servant.Server.Lucid

Synopsis

Documentation

htmlResponse Source #

Arguments

:: Int

HTTP response status code

-> [Header] 
-> Html () 
-> ServerError 

Build a ServerError with an HTML body.

Note that ServerErrors, despite their name, can represent any type of response, including successful ones.

htmlResponse' Source #

Arguments

:: ToHtml a 
=> Int

HTTP response status code

-> [Header] 
-> a 
-> ServerError 

More general version of htmlResponse, that can have worse type inference.