packages feed

scotty 0.10.0 → 0.10.1

raw patch · 4 files changed

+27/−4 lines, 4 filesdep +natsPVP: major bump suggested

API removals or changes: PVP suggests a major version bump

Dependencies added: nats

API changes (from Hackage documentation)

- Web.Scotty.Trans: middleware :: Monad m => Middleware -> ScottyT e m ()
+ Web.Scotty.Trans: middleware :: Middleware -> ScottyT e m ()

Files

Web/Scotty/Action.hs view
@@ -43,16 +43,20 @@ import qualified Data.ByteString.Lazy.Char8 as BL import qualified Data.CaseInsensitive       as CI import           Data.Default.Class         (def)+import           Data.Int #if !(MIN_VERSION_base(4,8,0)) import           Data.Monoid                (mconcat) #endif import qualified Data.Text                  as ST import qualified Data.Text.Lazy             as T import           Data.Text.Lazy.Encoding    (encodeUtf8)+import           Data.Word  import           Network.HTTP.Types import           Network.Wai +import           Numeric.Natural+ import           Web.Scotty.Internal.Types import           Web.Scotty.Util @@ -214,8 +218,20 @@  instance Parsable Double where parseParam = readEither instance Parsable Float where parseParam = readEither+ instance Parsable Int where parseParam = readEither+instance Parsable Int8 where parseParam = readEither+instance Parsable Int16 where parseParam = readEither+instance Parsable Int32 where parseParam = readEither+instance Parsable Int64 where parseParam = readEither instance Parsable Integer where parseParam = readEither++instance Parsable Word where parseParam = readEither+instance Parsable Word8 where parseParam = readEither+instance Parsable Word16 where parseParam = readEither+instance Parsable Word32 where parseParam = readEither+instance Parsable Word64 where parseParam = readEither+instance Parsable Natural where parseParam = readEither  -- | Useful for creating 'Parsable' instances for things that already implement 'Read'. Ex: --
Web/Scotty/Trans.hs view
@@ -125,5 +125,5 @@ -- | Use given middleware. Middleware is nested such that the first declared -- is the outermost middleware (it has first dibs on the request and last action -- on the response). Every middleware is run on each request.-middleware :: Monad m => Middleware -> ScottyT e m ()+middleware :: Middleware -> ScottyT e m () middleware = ScottyT . modify . addMiddleware
changelog.md view
@@ -1,3 +1,9 @@+## 0.10.1+* `Parsable` instances for `Word`, `Word8`, `Word16`, `Word32`, `Word64`+   [adamflott]+* `Parsable` instances for `Int8`, `Int16`, `Int32`, `Int64`, and `Natural`+* Removed redundant `Monad` constraint on `middleware`+ ## 0.10.0  * The monad parameters to `ScottyT` have been decoupled, causing the type@@ -27,7 +33,7 @@  * Added streaming uploads via the `bodyReader` function, which retrieves chunks   of the request body. [edofic]-  - `ActionEnv` had a `getBodyChunk` field added (in +  - `ActionEnv` had a `getBodyChunk` field added (in     `Web.Scotty.Internal.Types`)   - `RequestBodyState` and `BodyPartiallyStreamed` added to     `Web.Scotty.Internal.Types`
scotty.cabal view
@@ -1,5 +1,5 @@ Name:                scotty-Version:             0.10.0+Version:             0.10.1 Synopsis:            Haskell web framework inspired by Ruby's Sinatra, using WAI and Warp Homepage:            https://github.com/scotty-web/scotty Bug-reports:         https://github.com/scotty-web/scotty/issues@@ -77,6 +77,7 @@                        http-types          >= 0.8.2    && < 0.9,                        monad-control       >= 1.0.0.3  && < 1.1,                        mtl                 >= 2.1.2    && < 2.3,+                       nats                >= 0.1      && < 2,                        network             >= 2.6.0.2  && < 2.7,                        regex-compat        >= 0.95.1   && < 0.96,                        text                >= 0.11.3.1 && < 1.3,@@ -86,7 +87,7 @@                        wai                 >= 3.0.0    && < 3.1,                        wai-extra           >= 3.0.0    && < 3.1,                        warp                >= 3.0.0    && < 3.1-  +   GHC-options: -Wall -fno-warn-orphans  test-suite spec