Hello community,

here is the log from the commit of package ghc-mustache for openSUSE:Factory 
checked in at 2018-05-30 12:11:01
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/ghc-mustache (Old)
 and      /work/SRC/openSUSE:Factory/.ghc-mustache.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "ghc-mustache"

Wed May 30 12:11:01 2018 rev:7 rq:607842 version:2.3.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/ghc-mustache/ghc-mustache.changes        
2017-09-15 21:59:41.494742482 +0200
+++ /work/SRC/openSUSE:Factory/.ghc-mustache.new/ghc-mustache.changes   
2018-05-30 12:26:29.459957956 +0200
@@ -1,0 +2,7 @@
+Mon May 14 17:02:11 UTC 2018 - [email protected]
+
+- Update mustache to version 2.3.0.
+  - Changed `EitherT` to `ExceptT` (deprecation)
+  - removed `getFile` from public API
+
+-------------------------------------------------------------------

Old:
----
  mustache-2.2.3.tar.gz

New:
----
  mustache-2.3.0.tar.gz

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

Other differences:
------------------
++++++ ghc-mustache.spec ++++++
--- /var/tmp/diff_new_pack.51ZdTl/_old  2018-05-30 12:26:30.275930254 +0200
+++ /var/tmp/diff_new_pack.51ZdTl/_new  2018-05-30 12:26:30.275930254 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package ghc-mustache
 #
-# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -19,7 +19,7 @@
 %global pkg_name mustache
 %bcond_with tests
 Name:           ghc-%{pkg_name}
-Version:        2.2.3
+Version:        2.3.0
 Release:        0
 Summary:        A mustache template parser library
 License:        BSD-3-Clause
@@ -95,7 +95,7 @@
 %ghc_pkg_recache
 
 %files -f %{name}.files
-%doc LICENSE
+%license LICENSE
 %{_bindir}/haskell-mustache
 
 %files devel -f %{name}-devel.files

++++++ mustache-2.2.3.tar.gz -> mustache-2.3.0.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/mustache-2.2.3/CHANGELOG.md 
new/mustache-2.3.0/CHANGELOG.md
--- old/mustache-2.2.3/CHANGELOG.md     2017-05-21 11:08:53.000000000 +0200
+++ new/mustache-2.3.0/CHANGELOG.md     2017-11-24 12:10:22.000000000 +0100
@@ -1,5 +1,10 @@
 # Mustache library changelog
 
+## v2.3.0
+
+- Changed `EitherT` to `ExceptT` (deprecation)
+- removed `getFile` from public API
+
 ## v2.2.3
 
 - Quick fix to prevent catchSubstitute from reporting substitutions to the 
renderer.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/mustache-2.2.3/mustache.cabal 
new/mustache-2.3.0/mustache.cabal
--- old/mustache-2.2.3/mustache.cabal   2017-05-21 11:08:53.000000000 +0200
+++ new/mustache-2.3.0/mustache.cabal   2017-11-25 10:14:24.000000000 +0100
@@ -1,121 +1,128 @@
-name:                mustache
-version:             2.2.3
-synopsis:            A mustache template parser library.
-description:
-  Allows parsing and rendering template files with mustache markup. See the
-  mustache <http://mustache.github.io/mustache.5.html language reference>.
-  .
-  Implements the mustache spec version 1.1.3.
-  .
-  /Note/: Versions including and beyond 0.4 are compatible with ghc 7.8 again.
-license:             BSD3
-license-file:        LICENSE
-author:              Justus Adam
-maintainer:          [email protected]
-homepage:            https://github.com/JustusAdam/mustache
-bug-reports:         https://github.com/JustusAdam/mustache/issues
-copyright:           (c) 2015, 2016 Justus Adam
-category:            Development
-build-type:          Simple
-extra-source-files:  README.md
-                   , CHANGELOG.md
-                   , test/unit/examples/*.txt.mustache
-                   , test/unit/examples/partials/*.txt.mustache
-cabal-version:       >=1.10
-tested-with:         GHC >=7.8 && <= 7.10.2
-
+-- This file has been generated from package.yaml by hpack version 0.17.1.
+--
+-- see: https://github.com/sol/hpack
+
+name:           mustache
+version:        2.3.0
+synopsis:       A mustache template parser library.
+description:    Allows parsing and rendering template files with mustache 
markup. See the
+                mustache <http://mustache.github.io/mustache.5.html language 
reference>.
+                .
+                Implements the mustache spec version 1.1.3.
+                .
+                /Note/: Versions including and beyond 0.4 are compatible with 
ghc 7.8 again.
+category:       Development
+homepage:       https://github.com/JustusAdam/mustache
+bug-reports:    https://github.com/JustusAdam/mustache/issues
+author:         Justus Adam
+maintainer:     [email protected]
+copyright:      (c) 2015,
+                2016 Justus Adam
+license:        BSD3
+license-file:   LICENSE
+tested-with:    GHC>=7.8 && <=7.10.2
+build-type:     Simple
+cabal-version:  >= 1.10
+
+extra-source-files:
+    CHANGELOG.md
+    README.md
+    test/unit/examples/partials/test-partial.txt.mustache
+    test/unit/examples/test-template-partials.txt.mustache
+    test/unit/examples/test-template.txt.mustache
 
 source-repository head
-  type:     git
+  type: git
   location: git://github.com/JustusAdam/mustache.git
 
-
 library
-  exposed-modules:     Text.Mustache
-                     , Text.Mustache.Types
-                     , Text.Mustache.Parser
-                     , Text.Mustache.Compile
-                     , Text.Mustache.Render
-  other-modules:       Text.Mustache.Internal
-                     , Text.Mustache.Internal.Types
-  other-extensions:    NamedFieldPuns
-                     , OverloadedStrings
-                     , LambdaCase
-                     , TupleSections
-                     , TemplateHaskell
-                     , QuasiQuotes
-  build-depends:       base >=4.7 && <5
-                     , text
-                     , parsec
-                     , mtl >= 2.2.1
-                     , either
-                     , aeson
-                     , unordered-containers
-                     , vector
-                     , bytestring
-                     , directory
-                     , filepath
-                     , scientific
-                     , containers
-                     , template-haskell
-                     , th-lift
-  hs-source-dirs:      src
-  default-language:    Haskell2010
-  ghc-options:
-    -Wall
-  default-extensions:  LambdaCase
-                     , TupleSections
-
+  hs-source-dirs:
+      src
+  default-extensions: LambdaCase TupleSections
+  other-extensions: NamedFieldPuns OverloadedStrings LambdaCase TupleSections 
TemplateHaskell QuasiQuotes
+  ghc-options: -Wall
+  build-depends:
+      base >=4.7 && <5
+    , text
+    , aeson
+    , bytestring
+    , filepath
+    , parsec
+    , mtl >=2.2.1
+    , either
+    , unordered-containers
+    , vector
+    , directory
+    , scientific
+    , containers
+    , template-haskell
+    , th-lift
+  exposed-modules:
+      Text.Mustache
+      Text.Mustache.Types
+      Text.Mustache.Parser
+      Text.Mustache.Compile
+      Text.Mustache.Render
+  other-modules:
+      Text.Mustache.Internal
+      Text.Mustache.Internal.Types
+      Paths_mustache
+  default-language: Haskell2010
 
 executable haskell-mustache
-  main-is:             Main.hs
-  build-depends:       base >=4.7 && <5
-                     , mustache
-                     , bytestring
-                     , yaml
-                     , aeson
-                     , cmdargs
-                     , text
-                     , filepath
-  default-language:    Haskell2010
-  ghc-options:       -threaded -Wall
-  hs-source-dirs:      app
+  main-is: Main.hs
+  hs-source-dirs:
+      app
+  ghc-options: -threaded -Wall
+  build-depends:
+      base >=4.7 && <5
+    , text
+    , aeson
+    , bytestring
+    , filepath
+    , mustache
+    , yaml
+    , cmdargs
+  default-language: Haskell2010
 
+test-suite language-specifications
+  type: exitcode-stdio-1.0
+  main-is: Language.hs
+  hs-source-dirs:
+      test/integration
+  build-depends:
+      base >=4.7 && <5
+    , text
+    , aeson
+    , bytestring
+    , filepath
+    , hspec
+    , mustache
+    , unordered-containers
+    , yaml
+    , base-unicode-symbols
+    , wreq
+    , zlib
+    , tar
+    , lens
+  default-language: Haskell2010
 
 test-suite unit-tests
-  main-is:            Spec.hs
-  type:               exitcode-stdio-1.0
-  build-depends:      base >=4.7 && <5
-                    , hspec
-                    , text
-                    , mustache
-                    , aeson
-                    , unordered-containers
-                    , yaml
-                    , filepath
-                    , process
-                    , temporary
-                    , directory
-  hs-source-dirs:     test/unit
-  default-language:   Haskell2010
-
-
-test-suite language-specifications
-  main-is:            Language.hs
-  type:               exitcode-stdio-1.0
-  build-depends:      base >=4.7 && <5
-                    , hspec
-                    , text
-                    , mustache
-                    , aeson
-                    , unordered-containers
-                    , yaml
-                    , filepath
-                    , base-unicode-symbols
-                    , wreq
-                    , zlib
-                    , tar
-                    , lens
-                    , bytestring
-  hs-source-dirs:     test/integration
-  default-language:   Haskell2010
+  type: exitcode-stdio-1.0
+  main-is: Spec.hs
+  hs-source-dirs:
+      test/unit
+  build-depends:
+      base >=4.7 && <5
+    , text
+    , aeson
+    , bytestring
+    , filepath
+    , hspec
+    , mustache
+    , unordered-containers
+    , yaml
+    , process
+    , temporary
+    , directory
+  default-language: Haskell2010
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/mustache-2.2.3/src/Text/Mustache/Compile.hs 
new/mustache-2.3.0/src/Text/Mustache/Compile.hs
--- old/mustache-2.2.3/src/Text/Mustache/Compile.hs     2017-03-30 
19:35:27.000000000 +0200
+++ new/mustache-2.3.0/src/Text/Mustache/Compile.hs     2017-11-24 
12:07:54.000000000 +0100
@@ -12,7 +12,7 @@
 {-# LANGUAGE TemplateHaskell #-}
 module Text.Mustache.Compile
   ( automaticCompile, localAutomaticCompile, TemplateCache, 
compileTemplateWithCache
-  , compileTemplate, cacheFromList, getPartials, getFile, mustache, 
embedTemplate, embedSingleTemplate
+  , compileTemplate, cacheFromList, getPartials, mustache, embedTemplate, 
embedSingleTemplate
   ) where
 
 
@@ -20,7 +20,6 @@
 import           Control.Monad
 import           Control.Monad.Except
 import           Control.Monad.State
-import           Control.Monad.Trans.Either
 import           Data.Bool
 import           Data.HashMap.Strict        as HM
 import           Data.Text                  hiding (concat, find, map, uncons)
@@ -67,12 +66,12 @@
                          -> FilePath
                          -> IO (Either ParseError Template)
 compileTemplateWithCache searchSpace templates initName =
-  runEitherT $ evalStateT (compile' initName) $ flattenPartials templates
+  runExceptT $ evalStateT (compile' initName) $ flattenPartials templates
   where
     compile' :: FilePath
              -> StateT
                 (HM.HashMap String Template)
-                (EitherT ParseError IO)
+                (ExceptT ParseError IO)
                 Template
     compile' name' = do
       templates' <- get
@@ -81,7 +80,7 @@
         Nothing -> do
           rawSource <- lift $ getFile searchSpace name'
           compiled@(Template { ast = mSTree }) <-
-            lift $ hoistEither $ compileTemplate name' rawSource
+            lift $ ExceptT . pure $ compileTemplate name' rawSource
 
           foldM
             (\st@(Template { partials = p }) partialName -> do
@@ -135,7 +134,7 @@
   This trows 'ParseError's to be compatible with the internal Either Monad of
   'compileTemplateWithCache'.
 -}
-getFile :: [FilePath] -> FilePath -> EitherT ParseError IO Text
+getFile :: [FilePath] -> FilePath -> ExceptT ParseError IO Text
 getFile [] fp = throwError $ fileNotFound fp
 getFile (templateDir : xs) fp =
   lift (doesFileExist filePath) >>=
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/mustache-2.2.3/src/Text/Mustache.hs 
new/mustache-2.3.0/src/Text/Mustache.hs
--- old/mustache-2.2.3/src/Text/Mustache.hs     2017-05-20 11:58:30.000000000 
+0200
+++ new/mustache-2.3.0/src/Text/Mustache.hs     2017-11-08 12:54:18.000000000 
+0100
@@ -131,7 +131,7 @@
 
 Subsequenty the 'STree' of the template is scanned for included partials, any
 present 'TemplateCache' is queried for the partial 
('compileTemplateWithCache'),
-if not found it will be searched for in the @searchSpache@, compiled and
+if not found it will be searched for in the @searchSpace@, compiled and
 inserted into the template's own cache as well as the global cache for the
 compilation process.
 


Reply via email to