Changelog History
Page 3
-
v0.6.1 Changes
- Match changes in
wai-extra
.
- Match changes in
-
v0.6.0 Changes
The Scotty transformers (
ScottyT
andActionT
) are now parameterized over a custom exception type, allowing one to extend Scotty'sErrorT
layer with something richer thanText
errors. See theexceptions
example for use.ScottyM
andActionM
remain specialized toText
exceptions for simplicity.Both monads are now instances of
Functor
andApplicative
.There is a new
cookies
example.๐ฆ Internals brought up-to-date with WAI 2.0 and related packages.
-
v0.5.0 Changes
The Scotty monads (
ScottyM
andActionM
) are now monad transformers, allowing Scotty applications to be embedded in arbitraryMonadIO
s. The old API continues to be exported fromWeb.Scotty
where:type ScottyM = ScottyT IO type ActionM = ActionT IO
The new transformers are found in
Web.Scotty.Trans
. See theglobalstate
example for use. Special thanks to Dan Frumin (co-dan) for much of the legwork here.โ Added support for HTTP PATCH method.
โ Removed lambda action syntax. This will return when we have a better story for typesafe routes.
reqHeader :: Text -> ActionM Text
==>reqHeader :: Text -> ActionM (Maybe Text)
๐ New
raw
method to set body to a rawByteString
๐ Parse error thrown by
jsonData
now includes the body it couldn't parse.header
split intosetHeader
andaddHeader
. The former replaces a response header (original behavior). The latter adds a header (useful for multipleSet-Cookie
s, for instance).