packages feed

yesod-test 1.6.5 → 1.6.5.1

raw patch · 3 files changed

+10/−3 lines, 3 filesPVP ok

version bump matches the API change (PVP)

API changes (from Hackage documentation)

Files

ChangeLog.md view
@@ -1,3 +1,7 @@+## 1.6.5.1++* Make test suite build with GHC 8.6 [#1561](https://github.com/yesodweb/yesod/pull/1561)+ ## 1.6.5 bodyEquals prints out actual body in addition to expected body in failure msg [#1525](https://github.com/yesodweb/yesod/pull/1525)
test/main.hs view
@@ -5,6 +5,7 @@ {-# LANGUAGE ScopedTypeVariables #-} {-# LANGUAGE CPP #-} {-# LANGUAGE MultiParamTypeClasses #-}+{-# LANGUAGE LambdaCase #-} {-# LANGUAGE TemplateHaskell #-} {-# LANGUAGE QuasiQuotes #-} {-# LANGUAGE TypeFamilies #-}@@ -482,8 +483,10 @@  postResourcesR :: Handler () postResourcesR = do-  ([("foo", t)], _) <- runRequestBody-  sendResponseCreated $ ResourceR t+    t <- runRequestBody >>= \case+        ([("foo", t)], _) -> return t+        _ -> liftIO $ fail "postResourcesR pattern match failure"+    sendResponseCreated $ ResourceR t  getResourceR :: Text -> Handler Html getResourceR i = defaultLayout
yesod-test.cabal view
@@ -1,5 +1,5 @@ name:               yesod-test-version:            1.6.5+version:            1.6.5.1 license:            MIT license-file:       LICENSE author:             Nubis <nubis@woobiz.com.ar>