Embed a directory of static files in your Servant server

Version on this page:
LTS Haskell 15.14:
Stackage Nightly 2020-05-26:
Latest on Hackage:

See all snapshots servant-static-th appears in

BSD-3-Clause licensed by Dennis Gosnell
Maintained by [email protected]

Module documentation for

This version can be pinned in stack with:[email protected]:1244b4811fa91a5621c849466d6cb6ade3a715400ab7df070a281abe511fa8d8,3883


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.




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