packages feed

xstatic-th 0.1.0 → 0.1.1

raw patch · 3 files changed

+8/−2 lines, 3 filesPVP ok

version bump matches the API change (PVP)

API changes (from Hackage documentation)

Files

CHANGELOG.md view
@@ -1,5 +1,9 @@ # Changelog +## 0.1.1++- Fix test suite for mime-types 0.1.2.1+ ## 0.1.0  - Initial release
test/Test.hs view
@@ -5,6 +5,7 @@ module Main (main) where  import Codec.Compression.GZip qualified as GZip+import Control.Monad (unless) import Data.ByteString qualified as BS import Test.Tasty import Test.Tasty.HUnit@@ -29,6 +30,7 @@                 xf = $(embedXStaticFile "./data/test.js")             xfPath xf @?= "/test.js"             xfETag xf @?= "724ba28f4a9a1b472057ff99511ed393a45552e1"-            xfType xf @?= "application/javascript"+            unless (xfType xf `elem` ["application/javascript", "text/javascript"]) $ do+                error $ "Bad mime type: " <> show (xfType xf)             xfContent xf @?= BS.toStrict (GZip.compress "true\n")         ]
xstatic-th.cabal view
@@ -5,7 +5,7 @@ -- see: https://github.com/sol/hpack  name:           xstatic-th-version:        0.1.0+version:        0.1.1 synopsis:       Automatic generation of XStaticFile description:    Automatic generation of XStaticFile. category:       JavaScript