@hackage servant-fiat-content1.0.1

Fiat content types

[https://jappieklooster.nl](https://img.shields.io/badge/blog-jappieklooster.nl-lightgrey) Jappiejappie Githbu actions build status Jappiejappie Hackage version

Servant fiat content

Sometimes you want to have a plain text just be an HTML content type response, for example when you use a reflex to generate HTML, you have to use IO: https://hackage.haskell.org/package/reflex-dom-core-0.4/docs/Reflex-Dom-Builder-Static.html#v:renderStatic

Or a plain text be a Javascript, when you generate javascript clients in servant and want them to always be up to date with the running server (no filesystem BS): http://hackage.haskell.org/package/servant-js-0.9.4/docs/Servant-JS.html#v:jsForAPI

Fear not! we can do this rather trivially, shown by this module.