Hello community,

here is the log from the commit of package ghc-web-routes for openSUSE:Factory 
checked in at 2017-07-27 11:12:24
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/ghc-web-routes (Old)
 and      /work/SRC/openSUSE:Factory/.ghc-web-routes.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "ghc-web-routes"

Thu Jul 27 11:12:24 2017 rev:4 rq:511523 version:0.27.12

Changes:
--------
--- /work/SRC/openSUSE:Factory/ghc-web-routes/ghc-web-routes.changes    
2017-07-12 19:36:19.537639432 +0200
+++ /work/SRC/openSUSE:Factory/.ghc-web-routes.new/ghc-web-routes.changes       
2017-07-27 11:12:28.971448791 +0200
@@ -1,0 +2,5 @@
+Tue Jul 11 03:02:31 UTC 2017 - [email protected]
+
+- Update to version 0.27.12 revision 1.
+
+-------------------------------------------------------------------

Old:
----
  web-routes-0.27.11.tar.gz

New:
----
  web-routes-0.27.12.tar.gz

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

Other differences:
------------------
++++++ ghc-web-routes.spec ++++++
--- /var/tmp/diff_new_pack.yxzGJI/_old  2017-07-27 11:12:30.219272527 +0200
+++ /var/tmp/diff_new_pack.yxzGJI/_new  2017-07-27 11:12:30.219272527 +0200
@@ -19,7 +19,7 @@
 %global pkg_name web-routes
 %bcond_with tests
 Name:           ghc-%{pkg_name}
-Version:        0.27.11
+Version:        0.27.12
 Release:        0
 Summary:        Portable, type-safe URL routing
 License:        BSD-3-Clause

++++++ web-routes-0.27.11.tar.gz -> web-routes-0.27.12.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/web-routes-0.27.11/Web/Routes/PathInfo.hs 
new/web-routes-0.27.12/Web/Routes/PathInfo.hs
--- old/web-routes-0.27.11/Web/Routes/PathInfo.hs       2016-07-26 
02:27:35.000000000 +0200
+++ new/web-routes-0.27.12/Web/Routes/PathInfo.hs       2017-07-03 
16:25:36.000000000 +0200
@@ -32,6 +32,7 @@
 import Control.Monad (msum)
 import Data.ByteString (ByteString)
 import qualified Data.ByteString.Char8 as B
+import Data.Int (Int64)
 import Data.List as List (stripPrefix, tails)
 import Data.Text as Text (Text, pack, unpack, null, tails, stripPrefix)
 import Data.Text.Encoding (decodeUtf8)
@@ -337,21 +338,20 @@
 
 instance PathInfo Int where
   toPathSegments i = [pack $ show i]
-  fromPathSegments = pToken (const "Int") checkInt
-   where checkInt txt =
-           case signed decimal txt of
-             (Left e) -> Nothing
-             (Right (n, r))
-                 | Text.null r -> Just n
-                 | otherwise -> Nothing
+  fromPathSegments = pToken (const "Int") checkIntegral
 
 instance PathInfo Integer where
   toPathSegments i = [pack $ show i]
-  fromPathSegments = pToken (const "Integer") checkInt
-   where checkInt txt =
-           case signed decimal txt of
-             (Left e) -> Nothing
-             (Right (n, r))
-                 | Text.null r -> Just n
-                 | otherwise -> Nothing
+  fromPathSegments = pToken (const "Integer") checkIntegral
 
+instance PathInfo Int64 where
+  toPathSegments i = [pack $ show i]
+  fromPathSegments = pToken (const "Int64") checkIntegral
+
+checkIntegral :: Integral a => Text -> Maybe a
+checkIntegral txt =
+  case signed decimal txt of
+    (Left e) -> Nothing
+    (Right (n, r))
+       | Text.null r -> Just n
+       | otherwise -> Nothing
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/web-routes-0.27.11/web-routes.cabal 
new/web-routes-0.27.12/web-routes.cabal
--- old/web-routes-0.27.11/web-routes.cabal     2016-07-26 02:27:35.000000000 
+0200
+++ new/web-routes-0.27.12/web-routes.cabal     2017-07-03 16:25:36.000000000 
+0200
@@ -1,5 +1,5 @@
 Name:             web-routes
-Version:          0.27.11
+Version:          0.27.12
 License:          BSD3
 License-File:     LICENSE
 Author:           [email protected]
@@ -10,7 +10,7 @@
 Homepage:         
http://www.happstack.com/docs/crashcourse/index.html#web-routes
 Cabal-Version:    >= 1.8
 Build-type:       Simple
-tested-with:      GHC == 7.6.3, GHC == 7.8.4, GHC == 7.10.3
+tested-with:      GHC == 7.8.4, GHC == 7.10.3, GHC == 8.0.1
 
 test-suite Test
   type             : exitcode-stdio-1.0

++++++ web-routes.cabal ++++++
--- /var/tmp/diff_new_pack.yxzGJI/_old  2017-07-27 11:12:30.311259533 +0200
+++ /var/tmp/diff_new_pack.yxzGJI/_new  2017-07-27 11:12:30.315258968 +0200
@@ -1,5 +1,5 @@
 Name:             web-routes
-Version:          0.27.11
+Version:          0.27.12
 x-revision: 1
 License:          BSD3
 License-File:     LICENSE
@@ -11,7 +11,7 @@
 Homepage:         
http://www.happstack.com/docs/crashcourse/index.html#web-routes
 Cabal-Version:    >= 1.8
 Build-type:       Simple
-tested-with:      GHC == 7.6.3, GHC == 7.8.4, GHC == 7.10.3
+tested-with:      GHC == 7.8.4, GHC == 7.10.3, GHC == 8.0.1
 
 test-suite Test
   type             : exitcode-stdio-1.0


Reply via email to