servant-static-th 0.2.2.0 → 0.2.2.1
raw patch · 3 files changed
+14/−1 lines, 3 filesPVP: major bump suggested
API removals or changes: PVP suggests a major version bump
API changes (from Hackage documentation)
- Servant.Static.TH: data HTML :: *
+ Servant.Static.TH: data HTML
- Servant.Static.TH.Internal.FileTree: FileTreeDir :: FilePath -> (NonEmpty FileTree) -> FileTree
+ Servant.Static.TH.Internal.FileTree: FileTreeDir :: FilePath -> NonEmpty FileTree -> FileTree
Files
- CHANGELOG.md +5/−0
- servant-static-th.cabal +1/−1
- src/Servant/Static/TH.hs +8/−0
CHANGELOG.md view
@@ -1,5 +1,10 @@ # Changelog +## v0.2.2.1++- Update haddocks with a note to use `extra-source-files` in your `.cabal`+ file. Thanks [fkellner](https://github.com/fkellner)! [#8](https://github.com/cdepillabout/servant-static-th/pull/8)+ ## v0.2.2.0 - This adds MIME types for json, xml, gex. Thanks [delanoe](https://github.com/delanoe)! [#5](https://github.com/cdepillabout/servant-static-th/pull/5)
servant-static-th.cabal view
@@ -1,5 +1,5 @@ name: servant-static-th-version: 0.2.2.0+version: 0.2.2.1 synopsis: Embed a directory of static files in your Servant server description: Please see <https://github.com/cdepillabout/servant-static-th#readme README.md>. homepage: https://github.com/cdepillabout/servant-static-th
src/Servant/Static/TH.hs view
@@ -87,6 +87,14 @@ This shouldn't be used for high-traffic websites. Instead, you should serve your static files from something like Apache, nginx, or a CDN.++Note:++If you are creating a @cabal@ package that needs to work with @cabal-install@,+the @\"dir\"@ you want to serve needs to be a relative path inside your+project root, and all contained files need to be listed in your+@.cabal@-file under the @extra-source-files@ field so that they are+included and available at compile-time. -} module Servant.Static.TH