servant-static-th

Embed a directory of static files in your Servant server

https://github.com/cdepillabout/servant-static-th

Version on this page:0.2.0.1
LTS Haskell 22.14:1.0.0.0
Stackage Nightly 2024-03-28:1.0.0.0
Latest on Hackage:1.0.0.0

See all snapshots servant-static-th appears in

BSD-3-Clause licensed by Dennis Gosnell
Maintained by [email protected]
This version can be pinned in stack with:servant-static-th-0.2.0.1@sha256:1b8fc301c503dc6c0eafcc273e26ae2e55284e65dfc22e947f7e3b7a99ba1795,3883

Servant.Static.TH

Build Status Hackage Stackage LTS Stackage Nightly BSD3 license

servant-static-th allows you to embed a directory of static files in your application and serve them from your Servant server

For documentation and usage examples, see the documentation on Hackage.

Changes

Changelog

v0.2.0.1

  • In v0.2.0.0, the new MIME types were not being exported from Servant.Static.TH. This fixes that.

v0.2.0.0

  • Add support for ico, eot, ttf, woff, and woff2 file. Thanks Alex!

v0.1.0.6

  • Make it more efficient to embed bytestring filetypes.
  • Make everything other than HTML files be embedded as bytestrings. Don’t assume UTF8 encoding.