Embed a directory of static files in your Servant server

Version on this page:
LTS Haskell 22.16:
Stackage Nightly 2024-04-12:
Latest on Hackage:

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-,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.