Hello community,

here is the log from the commit of package ghc-yesod for openSUSE:Factory 
checked in at 2020-07-09 13:19:48
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/ghc-yesod (Old)
 and      /work/SRC/openSUSE:Factory/.ghc-yesod.new.3060 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "ghc-yesod"

Thu Jul  9 13:19:48 2020 rev:2 rq:819595 version:1.6.0.2

Changes:
--------
--- /work/SRC/openSUSE:Factory/ghc-yesod/ghc-yesod.changes      2020-06-19 
17:06:15.728933006 +0200
+++ /work/SRC/openSUSE:Factory/.ghc-yesod.new.3060/ghc-yesod.changes    
2020-07-09 13:20:18.149446904 +0200
@@ -1,0 +2,8 @@
+Sat Jun 27 02:00:25 UTC 2020 - psim...@suse.com
+
+- Update yesod to version 1.6.0.2.
+  ## 1.6.0.2
+
+  * Replace deprecated decodeFile with decodeFileEither. This should have no 
semantic impact, but silences a deprecation warning. 
[#1658](https://github.com/yesodweb/yesod/pull/1658)
+
+-------------------------------------------------------------------

Old:
----
  yesod-1.6.0.1.tar.gz

New:
----
  yesod-1.6.0.2.tar.gz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ ghc-yesod.spec ++++++
--- /var/tmp/diff_new_pack.ElGWTP/_old  2020-07-09 13:20:19.001449596 +0200
+++ /var/tmp/diff_new_pack.ElGWTP/_new  2020-07-09 13:20:19.005449608 +0200
@@ -18,7 +18,7 @@
 
 %global pkg_name yesod
 Name:           ghc-%{pkg_name}
-Version:        1.6.0.1
+Version:        1.6.0.2
 Release:        0
 Summary:        Creation of type-safe, RESTful web applications
 License:        MIT

++++++ yesod-1.6.0.1.tar.gz -> yesod-1.6.0.2.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/yesod-1.6.0.1/ChangeLog.md 
new/yesod-1.6.0.2/ChangeLog.md
--- old/yesod-1.6.0.1/ChangeLog.md      2020-01-25 23:04:04.000000000 +0100
+++ new/yesod-1.6.0.2/ChangeLog.md      2020-06-26 18:55:21.000000000 +0200
@@ -1,3 +1,7 @@
+## 1.6.0.2
+
+* Replace deprecated decodeFile with decodeFileEither. This should have no 
semantic impact, but silences a deprecation warning. 
[#1658](https://github.com/yesodweb/yesod/pull/1658)
+
 ## 1.6.0.1
 
 * Remove unnecessary deriving of Typeable
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/yesod-1.6.0.1/Yesod/Default/Config.hs 
new/yesod-1.6.0.2/Yesod/Default/Config.hs
--- old/yesod-1.6.0.1/Yesod/Default/Config.hs   2020-01-25 23:04:04.000000000 
+0100
+++ new/yesod-1.6.0.2/Yesod/Default/Config.hs   2020-06-26 18:52:41.000000000 
+0200
@@ -179,8 +179,8 @@
            -> IO (AppConfig environment extra)
 loadConfig (ConfigSettings env parseExtra getFile getObject) = do
     fp <- getFile env
-    mtopObj <- decodeFile fp
-    topObj <- maybe (fail "Invalid YAML file") return mtopObj
+    etopObj <- decodeFileEither fp
+    topObj <- either (const $ fail "Invalid YAML file") return etopObj
     obj <- getObject env topObj
     m <-
         case obj of
@@ -232,9 +232,10 @@
                     -> (Value -> Parser a) -- ^ what to do with the mapping
                     -> IO a
 withYamlEnvironment fp env f = do
-    mval <- decodeFile fp
+    mval <- decodeFileEither fp
     case mval of
-        Nothing -> fail $ "Invalid YAML file: " ++ show fp
-        Just (Object obj)
+        Left err ->
+          fail $ "Invalid YAML file: " ++ show fp ++ " " ++ 
prettyPrintParseException err
+        Right (Object obj)
             | Just v <- M.lookup (T.pack $ show env) obj -> parseMonad f v
         _ -> fail $ "Could not find environment: " ++ show env
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/yesod-1.6.0.1/Yesod/Default/Main.hs 
new/yesod-1.6.0.2/Yesod/Default/Main.hs
--- old/yesod-1.6.0.1/Yesod/Default/Main.hs     2020-01-25 23:04:04.000000000 
+0100
+++ new/yesod-1.6.0.2/Yesod/Default/Main.hs     2020-05-31 00:46:18.000000000 
+0200
@@ -77,7 +77,7 @@
   where
     shouldLog' = Warp.defaultShouldDisplayException
 
--- | Run your application continously, listening for SIGINT and exiting
+-- | Run your application continuously, listening for SIGINT and exiting
 --   when received
 --
 --   > withYourSite :: AppConfig DefaultEnv -> Logger -> (Application -> IO a) 
-> IO ()
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/yesod-1.6.0.1/yesod.cabal 
new/yesod-1.6.0.2/yesod.cabal
--- old/yesod-1.6.0.1/yesod.cabal       2020-01-25 23:04:04.000000000 +0100
+++ new/yesod-1.6.0.2/yesod.cabal       2020-06-26 18:59:14.000000000 +0200
@@ -1,5 +1,5 @@
 name:            yesod
-version:         1.6.0.1
+version:         1.6.0.2
 license:         MIT
 license-file:    LICENSE
 author:          Michael Snoyman <mich...@snoyman.com>
@@ -8,12 +8,13 @@
 description:     API docs and the README are available at 
<http://www.stackage.org/package/yesod>
 category:        Web, Yesod
 stability:       Stable
-cabal-version:   >= 1.6
+cabal-version:   >= 1.10
 build-type:      Simple
 homepage:        http://www.yesodweb.com/
 extra-source-files: README.md ChangeLog.md
 
 library
+    default-language: Haskell2010
     if os(windows)
         cpp-options: -DWINDOWS
 


Reply via email to