servant-fiat-content: Fiat content types

This is a package candidate release! Here you can preview how this package release will appear once published to the main package index (which can be accomplished via the 'maintain' link below). Please note that once a package has been published to the main package index it cannot be undone! Please consult the package uploading documentation for more information.

[maintain] [Publish]

Use bytestring or text to deliver content directly

[Skip to Readme]


Versions 1.0.0, 1.0.0, 1.0.1
Change log None available
Dependencies base (>=4.7 && <5), bytestring, http-media, servant (>=0.12 && <0.17), text [details]
License MIT
Copyright 2019 Jappie Klooster
Author Jappie Klooster
Category Servant, Web
Home page
Bug tracker
Source repo head: git clone
Uploaded by Jappie at 2019-04-10T16:06:41Z




Maintainer's Corner

For package maintainers and hackage trustees

Readme for servant-fiat-content-1.0.0

[back to package description]

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:

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):

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