From b26284c8e7826c51adaca0dceba90d4d23668dba Mon Sep 17 00:00:00 2001 From: Marco Zocca Date: Mon, 2 Oct 2023 08:07:21 +0200 Subject: [PATCH] version bump to 0.20 and update changelog --- Web/Scotty/Action.hs | 1 - changelog.md | 6 +++++- scotty.cabal | 6 +++--- 3 files changed, 8 insertions(+), 5 deletions(-) diff --git a/Web/Scotty/Action.hs b/Web/Scotty/Action.hs index 9ec7a9c3..8e57af99 100644 --- a/Web/Scotty/Action.hs +++ b/Web/Scotty/Action.hs @@ -188,7 +188,6 @@ redirect = E.throw . Redirect -- exception. Any code after the call to finish will not be run. -- -- /Since: 0.10.3/ --- finish :: (ScottyError e, Monad m) => ActionT e m a finish :: (Monad m) => ActionT m a finish = E.throw Finish diff --git a/changelog.md b/changelog.md index c99047cd..5bc5136c 100644 --- a/changelog.md +++ b/changelog.md @@ -1,4 +1,6 @@ ## next [????.??.??] + +## 0.20 [2023.10.02] * Drop support for GHC < 8.10 and modernise the CI pipeline (#300). * Adds a new `nested` handler that allows you to place an entire WAI Application under a Scotty route (#233). * Disambiguate request parameters (#204). Adjust the `Env` type to have three `[Param]` fields instead of one, add `captureParam`, `formParam`, `queryParam` and the associated `captureParams`, `formParams`, `queryParams`. Add deprecation notices to `param` and `params`. @@ -7,10 +9,12 @@ * (Internal) Remove unused type `RequestBodyState` (#313) Breaking: -* Get rid of data-default-class (#316) https://markkarpov.com/post/data-default.html + * (#310) Rewrite `ActionT` as a `ReaderT`-over-`IO` (using the "ReaderT pattern" : https://www.fpcomplete.com/blog/readert-design-pattern/ ) * (#310) Introduce `unliftio-core` as a dependency, and base exception handling on methods copied from `unliftio` e.g. `catch`. +* (#310) Clarify the exception handling mechanism of ActionT, ScottyT. `raise` and `rescue` change signature to use proper `Exception` types rather than strings. * (#310) All ActionT methods (`text`, `html` etc.) have now a MonadIO constraint on the base monad rather than Monad. `rescue` has a MonadUnliftIO constraint. The Alternative instance of ActionT also is based on MonadIO because `next` is implemented in terms of `throw`. +* Get rid of data-default-class (#316) ## 0.12.1 [2022.11.17] * Fix CPP bug that prevented tests from building on Windows. diff --git a/scotty.cabal b/scotty.cabal index 5f930dab..f90e2d36 100644 --- a/scotty.cabal +++ b/scotty.cabal @@ -1,13 +1,13 @@ Name: scotty -Version: 0.12.1 +Version: 0.20 Synopsis: Haskell web framework inspired by Ruby's Sinatra, using WAI and Warp Homepage: https://github.com/scotty-web/scotty Bug-reports: https://github.com/scotty-web/scotty/issues License: BSD3 License-file: LICENSE Author: Andrew Farmer -Maintainer: Andrew Farmer and the Scotty maintainers -Copyright: (c) 2012-Present Andrew Farmer +Maintainer: The Scotty maintainers +Copyright: (c) 2012-Present Andrew Farmer and the Scotty maintainers Category: Web Stability: experimental Build-type: Simple