packages feed

keter 1.3.7 → 1.3.7.1

raw patch · 3 files changed

+18/−9 lines, 3 filesPVP ok

version bump matches the API change (PVP)

API changes (from Hackage documentation)

Files

ChangeLog.md view
@@ -1,3 +1,7 @@+## 1.3.7.1++Bug fix: catch exceptions during reload [#64](https://github.com/snoyberg/keter/issues/64)+ ## 1.3.7  * Add ability to use middleware [#63](https://github.com/snoyberg/keter/pulls/63)
Keter/AppManager.hs view
@@ -222,18 +222,23 @@         eres <- E.try $ App.start appStartConfig appid input         case eres of             Left e -> do-                let name =-                        case appid of-                            AIBuiltin -> "<builtin>"-                            AINamed x -> x                 log $ ErrorStartingBundle name e                 return Nothing             Right app -> return $ Just app     processAction (Just app) (Reload input) = do-        App.reload app input-        -- reloading will /always/ result in a valid app, either the old one-        -- will continue running or the new one will replace it.-        return $ Just app+        eres <- E.try $ App.reload app input+        case eres of+            Left e -> do+                log $ ErrorStartingBundle name e+                -- reloading will /always/ result in a valid app, either the old one+                -- will continue running or the new one will replace it.+                return (Just app)+            Right () -> return $ Just app++    name =+        case appid of+            AIBuiltin -> "<builtin>"+            AINamed x -> x  addApp :: AppManager -> FilePath -> IO () addApp appMan bundle = do
keter.cabal view
@@ -1,5 +1,5 @@ Name:                keter-Version:             1.3.7+Version:             1.3.7.1 Synopsis:            Web application deployment manager, focusing on Haskell web frameworks Description:         Hackage documentation generation is not reliable. For up to date documentation, please see: <http://www.stackage.org/package/keter>. Homepage:            http://www.yesodweb.com/