servant-static-th 0.1.0.4 → 0.1.0.5
raw patch · 2 files changed
+3/−2 lines, 2 filesPVP ok
version bump matches the API change (PVP)
API changes (from Hackage documentation)
Files
servant-static-th.cabal view
@@ -1,5 +1,5 @@ name: servant-static-th-version: 0.1.0.4+version: 0.1.0.5 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/Internal/Mime.hs view
@@ -92,6 +92,7 @@ , ("jpg", MimeTypeInfo [t|JPEG|] [t|ByteString|] byteStringToExp) , ("js", MimeTypeInfo [t|JS|] [t|ByteString|] utf8ByteStringToExp) , ("png", MimeTypeInfo [t|PNG|] [t|ByteString|] byteStringToExp)+ , ("svg", MimeTypeInfo [t|SVG|] [t|ByteString|] utf8ByteStringToExp) , ("txt", MimeTypeInfo [t|TXT|] [t|ByteString|] byteStringToExp) ] @@ -191,7 +192,7 @@ -- | @image\/svg@ instance Accept SVG where contentType :: Proxy SVG -> MediaType- contentType _ = "image" // "svg"+ contentType _ = "image" // "svg+xml" instance MimeRender SVG ByteString where mimeRender :: Proxy SVG -> ByteString -> LByteString.ByteString