packages feed

scotty 0.10.1 → 0.10.2

raw patch · 3 files changed

+5/−3 lines, 3 filesdep ~aesondep ~http-typesdep ~waiPVP: major bump suggested

API removals or changes: PVP suggests a major version bump

Dependency ranges changed: aeson, http-types, wai, warp

API changes (from Hackage documentation)

- Web.Scotty: settings :: Options -> Settings
- Web.Scotty: verbose :: Options -> Int
- Web.Scotty.Internal.Types: getBody :: ActionEnv -> IO ByteString
- Web.Scotty.Internal.Types: getBodyChunk :: ActionEnv -> IO ByteString
- Web.Scotty.Internal.Types: getFiles :: ActionEnv -> [File]
- Web.Scotty.Internal.Types: getParams :: ActionEnv -> [Param]
- Web.Scotty.Internal.Types: getReq :: ActionEnv -> Request
- Web.Scotty.Internal.Types: handler :: ScottyState e m -> ErrorHandler e m
- Web.Scotty.Internal.Types: instance (Monad m, Functor m) => Applicative (ActionT e m)
- Web.Scotty.Internal.Types: instance (Monad m, ScottyError e) => Monad (ActionT e m)
- Web.Scotty.Internal.Types: instance (Monad m, ScottyError e) => MonadPlus (ActionT e m)
- Web.Scotty.Internal.Types: instance (Monad m, ScottyError e, Functor m) => Alternative (ActionT e m)
- Web.Scotty.Internal.Types: instance (MonadBase b m, ScottyError e) => MonadBase b (ActionT e m)
- Web.Scotty.Internal.Types: instance (MonadIO m, ScottyError e) => MonadIO (ActionT e m)
- Web.Scotty.Internal.Types: instance (ScottyError e, Monad m) => MonadError (ActionError e) (ActionT e m)
- Web.Scotty.Internal.Types: instance (ScottyError e, MonadBaseControl b m) => MonadBaseControl b (ActionT e m)
- Web.Scotty.Internal.Types: instance Applicative (ScottyT e m)
- Web.Scotty.Internal.Types: instance Default (ScottyState e m)
- Web.Scotty.Internal.Types: instance Default Options
- Web.Scotty.Internal.Types: instance Default ScottyResponse
- Web.Scotty.Internal.Types: instance Exception BodyPartiallyStreamed
- Web.Scotty.Internal.Types: instance Functor (ScottyT e m)
- Web.Scotty.Internal.Types: instance Functor m => Functor (ActionT e m)
- Web.Scotty.Internal.Types: instance IsString RoutePattern
- Web.Scotty.Internal.Types: instance Monad (ScottyT e m)
- Web.Scotty.Internal.Types: instance MonadTrans (ActionT e)
- Web.Scotty.Internal.Types: instance MonadTransControl (ActionT e)
- Web.Scotty.Internal.Types: instance ScottyError Text
- Web.Scotty.Internal.Types: instance ScottyError e => ScottyError (ActionError e)
- Web.Scotty.Internal.Types: instance Show BodyPartiallyStreamed
- Web.Scotty.Internal.Types: instance Typeable BodyPartiallyStreamed
- Web.Scotty.Internal.Types: middlewares :: ScottyState e m -> [Middleware]
- Web.Scotty.Internal.Types: routes :: ScottyState e m -> [Middleware m]
- Web.Scotty.Internal.Types: runAM :: ActionT e m a -> ExceptT (ActionError e) (ReaderT ActionEnv (StateT ScottyResponse m)) a
- Web.Scotty.Internal.Types: runS :: ScottyT e m a -> State (ScottyState e m) a
- Web.Scotty.Internal.Types: settings :: Options -> Settings
- Web.Scotty.Internal.Types: srContent :: ScottyResponse -> Content
- Web.Scotty.Internal.Types: srHeaders :: ScottyResponse -> ResponseHeaders
- Web.Scotty.Internal.Types: srStatus :: ScottyResponse -> Status
- Web.Scotty.Internal.Types: verbose :: Options -> Int
- Web.Scotty.Trans: settings :: Options -> Settings
- Web.Scotty.Trans: verbose :: Options -> Int
+ Web.Scotty: [settings] :: Options -> Settings
+ Web.Scotty: [verbose] :: Options -> Int
+ Web.Scotty.Internal.Types: [getBodyChunk] :: ActionEnv -> IO ByteString
+ Web.Scotty.Internal.Types: [getBody] :: ActionEnv -> IO ByteString
+ Web.Scotty.Internal.Types: [getFiles] :: ActionEnv -> [File]
+ Web.Scotty.Internal.Types: [getParams] :: ActionEnv -> [Param]
+ Web.Scotty.Internal.Types: [getReq] :: ActionEnv -> Request
+ Web.Scotty.Internal.Types: [handler] :: ScottyState e m -> ErrorHandler e m
+ Web.Scotty.Internal.Types: [middlewares] :: ScottyState e m -> [Middleware]
+ Web.Scotty.Internal.Types: [routes] :: ScottyState e m -> [Middleware m]
+ Web.Scotty.Internal.Types: [runAM] :: ActionT e m a -> ExceptT (ActionError e) (ReaderT ActionEnv (StateT ScottyResponse m)) a
+ Web.Scotty.Internal.Types: [runS] :: ScottyT e m a -> State (ScottyState e m) a
+ Web.Scotty.Internal.Types: [settings] :: Options -> Settings
+ Web.Scotty.Internal.Types: [srContent] :: ScottyResponse -> Content
+ Web.Scotty.Internal.Types: [srHeaders] :: ScottyResponse -> ResponseHeaders
+ Web.Scotty.Internal.Types: [srStatus] :: ScottyResponse -> Status
+ Web.Scotty.Internal.Types: [verbose] :: Options -> Int
+ Web.Scotty.Internal.Types: instance (Control.Monad.Base.MonadBase b m, Web.Scotty.Internal.Types.ScottyError e) => Control.Monad.Base.MonadBase b (Web.Scotty.Internal.Types.ActionT e m)
+ Web.Scotty.Internal.Types: instance (Control.Monad.IO.Class.MonadIO m, Web.Scotty.Internal.Types.ScottyError e) => Control.Monad.IO.Class.MonadIO (Web.Scotty.Internal.Types.ActionT e m)
+ Web.Scotty.Internal.Types: instance (GHC.Base.Monad m, Web.Scotty.Internal.Types.ScottyError e) => GHC.Base.Alternative (Web.Scotty.Internal.Types.ActionT e m)
+ Web.Scotty.Internal.Types: instance (GHC.Base.Monad m, Web.Scotty.Internal.Types.ScottyError e) => GHC.Base.Monad (Web.Scotty.Internal.Types.ActionT e m)
+ Web.Scotty.Internal.Types: instance (GHC.Base.Monad m, Web.Scotty.Internal.Types.ScottyError e) => GHC.Base.MonadPlus (Web.Scotty.Internal.Types.ActionT e m)
+ Web.Scotty.Internal.Types: instance (Web.Scotty.Internal.Types.ScottyError e, Control.Monad.Trans.Control.MonadBaseControl b m) => Control.Monad.Trans.Control.MonadBaseControl b (Web.Scotty.Internal.Types.ActionT e m)
+ Web.Scotty.Internal.Types: instance (Web.Scotty.Internal.Types.ScottyError e, GHC.Base.Monad m) => Control.Monad.Error.Class.MonadError (Web.Scotty.Internal.Types.ActionError e) (Web.Scotty.Internal.Types.ActionT e m)
+ Web.Scotty.Internal.Types: instance Control.Monad.Trans.Class.MonadTrans (Web.Scotty.Internal.Types.ActionT e)
+ Web.Scotty.Internal.Types: instance Control.Monad.Trans.Control.MonadTransControl (Web.Scotty.Internal.Types.ActionT e)
+ Web.Scotty.Internal.Types: instance Data.Default.Class.Default (Web.Scotty.Internal.Types.ScottyState e m)
+ Web.Scotty.Internal.Types: instance Data.Default.Class.Default Web.Scotty.Internal.Types.Options
+ Web.Scotty.Internal.Types: instance Data.Default.Class.Default Web.Scotty.Internal.Types.ScottyResponse
+ Web.Scotty.Internal.Types: instance Data.String.IsString Web.Scotty.Internal.Types.RoutePattern
+ Web.Scotty.Internal.Types: instance GHC.Base.Applicative (Web.Scotty.Internal.Types.ScottyT e m)
+ Web.Scotty.Internal.Types: instance GHC.Base.Functor (Web.Scotty.Internal.Types.ScottyT e m)
+ Web.Scotty.Internal.Types: instance GHC.Base.Functor m => GHC.Base.Functor (Web.Scotty.Internal.Types.ActionT e m)
+ Web.Scotty.Internal.Types: instance GHC.Base.Monad (Web.Scotty.Internal.Types.ScottyT e m)
+ Web.Scotty.Internal.Types: instance GHC.Base.Monad m => GHC.Base.Applicative (Web.Scotty.Internal.Types.ActionT e m)
+ Web.Scotty.Internal.Types: instance GHC.Exception.Exception Web.Scotty.Internal.Types.BodyPartiallyStreamed
+ Web.Scotty.Internal.Types: instance GHC.Show.Show Web.Scotty.Internal.Types.BodyPartiallyStreamed
+ Web.Scotty.Internal.Types: instance Web.Scotty.Internal.Types.ScottyError Data.Text.Internal.Lazy.Text
+ Web.Scotty.Internal.Types: instance Web.Scotty.Internal.Types.ScottyError e => Web.Scotty.Internal.Types.ScottyError (Web.Scotty.Internal.Types.ActionError e)
+ Web.Scotty.Trans: [settings] :: Options -> Settings
+ Web.Scotty.Trans: [verbose] :: Options -> Int

Files

Web/Scotty/Route.hs view
@@ -171,8 +171,7 @@         shouldParseBody = isJust $ Parse.getRequestBodyType req      (formparams, fs) <- if shouldParseBody-      then liftIO $ do putStrLn "consuming body"-                       wholeBody <- BL.toChunks `fmap` bs+      then liftIO $ do wholeBody <- BL.toChunks `fmap` bs                        parseRequestBody wholeBody Parse.lbsBackEnd req       else return ([], []) 
changelog.md view
@@ -1,3 +1,6 @@+## 0.10.2+* Removed debug statement from routes+ ## 0.10.1 * `Parsable` instances for `Word`, `Word8`, `Word16`, `Word32`, `Word64`    [adamflott]
scotty.cabal view
@@ -1,5 +1,5 @@ Name:                scotty-Version:             0.10.1+Version:             0.10.2 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