All Versions
23
Latest Version
Avg Release Cycle
-
Latest Release
-

Changelog History
Page 3

  • v0.6.1 Changes

    • Match changes in wai-extra.
  • v0.6.0 Changes

    • The Scotty transformers (ScottyT and ActionT) are now parameterized over a custom exception type, allowing one to extend Scotty's ErrorT layer with something richer than Text errors. See the exceptions example for use. ScottyM and ActionM remain specialized to Text exceptions for simplicity.

    • Both monads are now instances of Functor and Applicative.

    • 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 and ActionM) are now monad transformers, allowing Scotty applications to be embedded in arbitrary MonadIOs. The old API continues to be exported from Web.Scotty where:

      type ScottyM = ScottyT IO
      type ActionM = ActionT IO
      

    The new transformers are found in Web.Scotty.Trans. See the globalstate 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 raw ByteString

    • ๐Ÿ“œ Parse error thrown by jsonData now includes the body it couldn't parse.

    • header split into setHeader and addHeader. The former replaces a response header (original behavior). The latter adds a header (useful for multiple Set-Cookies, for instance).