Hello community, here is the log from the commit of package ghc-Spintax for openSUSE:Factory checked in at 2017-07-06 00:02:10 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/ghc-Spintax (Old) and /work/SRC/openSUSE:Factory/.ghc-Spintax.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Package is "ghc-Spintax" Thu Jul 6 00:02:10 2017 rev:4 rq:508014 version:0.3.2 Changes: -------- --- /work/SRC/openSUSE:Factory/ghc-Spintax/ghc-Spintax.changes 2017-03-03 17:48:06.010904398 +0100 +++ /work/SRC/openSUSE:Factory/.ghc-Spintax.new/ghc-Spintax.changes 2017-07-06 00:02:12.768329835 +0200 @@ -1,0 +2,5 @@ +Sun Jun 25 18:41:43 UTC 2017 - psimons@suse.com + +- Update to version 0.3.2. + +------------------------------------------------------------------- Old: ---- Spintax-0.3.1.tar.gz New: ---- Spintax-0.3.2.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ ghc-Spintax.spec ++++++ --- /var/tmp/diff_new_pack.2BvMGY/_old 2017-07-06 00:02:13.428236869 +0200 +++ /var/tmp/diff_new_pack.2BvMGY/_new 2017-07-06 00:02:13.432236305 +0200 @@ -18,7 +18,7 @@ %global pkg_name Spintax Name: ghc-%{pkg_name} -Version: 0.3.1 +Version: 0.3.2 Release: 0 Summary: Random text generation based on spintax License: BSD-3-Clause ++++++ Spintax-0.3.1.tar.gz -> Spintax-0.3.2.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Spintax-0.3.1/Spintax.cabal new/Spintax-0.3.2/Spintax.cabal --- old/Spintax-0.3.1/Spintax.cabal 2016-12-26 16:30:29.000000000 +0100 +++ new/Spintax-0.3.2/Spintax.cabal 2017-06-18 17:17:32.000000000 +0200 @@ -1,5 +1,5 @@ name: Spintax -version: 0.3.1 +version: 0.3.2 synopsis: Random text generation based on spintax description: Random text generation based on spintax with nested alternatives and empty options. homepage: https://github.com/MichelBoucey/spintax @@ -7,7 +7,7 @@ license-file: LICENSE author: Michel Boucey maintainer: michel.boucey@cybervisible.fr -copyright: (c) 2016 - Michel Boucey +copyright: (c) 2016-2017 - Michel Boucey category: Text build-type: Simple cabal-version: >=1.10 @@ -17,7 +17,7 @@ exposed-modules: Text.Spintax build-depends: attoparsec >= 0.12.1.6 && < 0.14 , base >= 4.7 && < 5 - , extra >= 1.4.3 && < 1.6 + , extra >= 1.4.3 && < 1.7 , mtl >= 2.2.1 && < 2.3 , mwc-random >= 0.13.3.2 && < 0.14 , text >= 1.2.2 && < 1.3 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Spintax-0.3.1/src/Text/Spintax.hs new/Spintax-0.3.2/src/Text/Spintax.hs --- old/Spintax-0.3.1/src/Text/Spintax.hs 2016-11-28 10:22:17.000000000 +0100 +++ new/Spintax-0.3.2/src/Text/Spintax.hs 2017-06-18 17:12:52.000000000 +0200 @@ -68,22 +68,18 @@ (\r -> (!!) as (r-1)) <$> uniformR (1,E.length _as) _g go _ _ _ _ = parseFail parseFail = fail msg - -spinSyntax :: Parser T.Text -spinSyntax = - openBrace <|> closeBrace <|> pipe <|> content - where - openBrace = string "{" - closeBrace = string "}" - pipe = string "|" - content = - takeWhile1 ctt - where - ctt '{' = False - ctt '}' = False - ctt '|' = False - ctt _ = True - -msg :: String -msg = "Spintax template parsing failure" + msg = "Spintax template parsing failure" + spinSyntax = + openBrace <|> closeBrace <|> pipe <|> content + where + openBrace = string "{" + closeBrace = string "}" + pipe = string "|" + content = + takeWhile1 ctt + where + ctt '{' = False + ctt '}' = False + ctt '|' = False + ctt _ = True