scotty v0.12 Release Notes
-
- Provide
MonadReader
andMonadState
instances forActionT
. - โ Add HTTP Status code as a field to
ActionError
, and add a sister function toraise
,raiseStatus
. This makes throwing a specific error code and exiting much cleaner, and avoids the strange defaulting to HTTP 500. This will make internal functions easier to implement with the right status codes 'thrown', such asjsonData
. - Correct http statuses returned by
jsonData
(#228). - ๐ Better error message when no data is provided to
jsonData
(#226). - โ Add
Semigroup
andMonoid
instances forActionT
andScottyT
- ScottyT: Use strict StateT instead of lazy
- ๐ Handle adjacent slashes in the request path as one (thanks @SkyWriter)
- Provide