cdepillabout / servant-static-th

Embed a directory of static files in your application and serve them from your Servant server
http://hackage.haskell.org/package/servant-static-th
BSD 3-Clause "New" or "Revised" License
14 stars 9 forks source link

Fix slow bytestring embedding. #3

Closed cdepillabout closed 7 years ago

cdepillabout commented 7 years ago

This fixes the problems with embedding large bytestring files.

This copies the method used in https://hackage.haskell.org/package/file-embed.

This no longers assumes that some file types are in UTF8. How ever it should still work for UTF8 files.