scotty v0.10.0 Release Notes
-
The monad parameters to
ScottyT
have been decoupled, causing the type of theScottyT
constructor to change. As a result,ScottyT
is no longer aMonadTrans
instance, and the type signatures ofscottyT
,scottyAppT
, andscottyOptsT
have been simplified. [ehamberg]๐
socketDescription
no longer uses the deprecatedPortNum
constructor. Instead, it uses theShow
instance forPortNumber
. This changes the bytes from host to network order, so the output ofsocketDescription
could change. [ehamberg]Alternative
,MonadPlus
instances forActionT
scotty
now depends ontransformers-compat
. As a result,ActionT
now usesExceptT
, regardless of which version oftransformers
is used. As a result, several functions inWeb.Scotty.Trans
no longer require aScottyError
constraint, sinceExceptT
does not require anError
constraint (unlikeErrorT
).โ Added support for OPTIONS routes via the
options
function [alvare]โ Add
scottySocket
andscottySocketT
, exposing Warp Unix socket support [hakujin]โ
Parsable
instance for lazyByteString
[tattsun]โ Added streaming uploads via the
bodyReader
function, which retrieves chunks of the request body. [edofic]ActionEnv
had agetBodyChunk
field added (inWeb.Scotty.Internal.Types
)RequestBodyState
andBodyPartiallyStreamed
added toWeb.Scotty.Internal.Types
jsonData
usesaeson
'seitherDecode
instead of justdecode
[k-bx]