This release includes a few bug fixes, new features (WAI applications nested under endpoints! cookie support!) as well as a big refactoring of the ActionT type and the overall exception system as well as a bunch of new tests. Overall the library should be easier to build upon and evolve going forward.
I owe @ocramz a huge debt of gratitude for becoming a scotty co-maintainer and working through the enormous backlog of GitHub issues. This release wouldnāt have been possible without the huge amount of work that @ocramz put into the project. Thanks!
Prompted by the recent discussion here about convenience and templates, I thought I would mention that Stackās ācentralā templates include two that are Scotty-related:
scotty-hello-world. Currently, Stack will work out that the templated package works with snapshot nightly-2023-10-04 (GHC 9.6.3). With other snapshots, you will need to specify scotty-0.20.1 as an extra dep; and
scotty-hspec-wai. Stack will work out that it works with lts-12.14 (GHC 9.4.7).
@RyanGlScott thank you for the kind words! Iām happy to help as I have some bandwidth for open source these days In turn, I would thank @fumieval for his thoughtful shepherding of the PR, he was instrumental in minimizing breakage and ensuring a consistent interface.
Maybe a bit related. Iām learning about htmx and so Iām translating their examples in to haskell with blaze-htmx. Then I chose scotty to serve it. GitHub - piq9117/htmx-examples
The Haskell maintainers in Nixpkgs have been quite busy lately, so Iām not sure when exactly weāll start the process.
Iād welcome you to join us in https://matrix.to/#/#haskell:nixos.org if you want to help with the move to LTS 22. It is sometimes quite a lot of work to transition to a newer compiler.