Hello community, here is the log from the commit of package ghc-HaTeX for openSUSE:Factory checked in at 2017-06-04 01:51:22 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/ghc-HaTeX (Old) and /work/SRC/openSUSE:Factory/.ghc-HaTeX.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "ghc-HaTeX" Sun Jun 4 01:51:22 2017 rev:3 rq:494131 version:3.17.2.0 Changes: -------- --- /work/SRC/openSUSE:Factory/ghc-HaTeX/ghc-HaTeX.changes 2017-04-07 13:55:05.216390278 +0200 +++ /work/SRC/openSUSE:Factory/.ghc-HaTeX.new/ghc-HaTeX.changes 2017-06-04 01:51:23.339744489 +0200 @@ -1,0 +2,5 @@ +Wed May 3 08:14:08 UTC 2017 - [email protected] + +- Update to version 3.17.2.0 with cabal2obs. + +------------------------------------------------------------------- Old: ---- HaTeX-3.17.1.0.tar.gz New: ---- HaTeX-3.17.2.0.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ ghc-HaTeX.spec ++++++ --- /var/tmp/diff_new_pack.UKDyvI/_old 2017-06-04 01:51:23.955657469 +0200 +++ /var/tmp/diff_new_pack.UKDyvI/_new 2017-06-04 01:51:23.955657469 +0200 @@ -19,7 +19,7 @@ %global pkg_name HaTeX %bcond_with tests Name: ghc-%{pkg_name} -Version: 3.17.1.0 +Version: 3.17.2.0 Release: 0 Summary: The Haskell LaTeX library License: BSD-3-Clause ++++++ HaTeX-3.17.1.0.tar.gz -> HaTeX-3.17.2.0.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/HaTeX-3.17.1.0/CHANGELOG.md new/HaTeX-3.17.2.0/CHANGELOG.md --- old/HaTeX-3.17.1.0/CHANGELOG.md 2016-12-21 07:00:49.000000000 +0100 +++ new/HaTeX-3.17.2.0/CHANGELOG.md 2017-04-30 14:00:42.000000000 +0200 @@ -9,6 +9,12 @@ # Changelog by versions +## From 3.17.1.0 to 3.17.2.0 + +* Semigroup instance for LaTeX. +* Data, Generic, and Typeable instances for LaTeX +* and related types. + ## From 3.17.0.0 to 3.17.1.0 * New math space commands (romildo). diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/HaTeX-3.17.1.0/HaTeX.cabal new/HaTeX-3.17.2.0/HaTeX.cabal --- old/HaTeX-3.17.1.0/HaTeX.cabal 2016-12-21 07:00:58.000000000 +0100 +++ new/HaTeX-3.17.2.0/HaTeX.cabal 2017-04-30 13:59:35.000000000 +0200 @@ -1,5 +1,5 @@ Name: HaTeX -Version: 3.17.1.0 +Version: 3.17.2.0 Author: Daniel Díaz Category: LaTeX Build-type: Simple diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/HaTeX-3.17.1.0/Text/LaTeX/Base/Syntax.hs new/HaTeX-3.17.2.0/Text/LaTeX/Base/Syntax.hs --- old/HaTeX-3.17.1.0/Text/LaTeX/Base/Syntax.hs 2015-03-18 22:54:27.000000000 +0100 +++ new/HaTeX-3.17.2.0/Text/LaTeX/Base/Syntax.hs 2017-04-30 13:54:08.000000000 +0200 @@ -1,5 +1,5 @@ -{-# LANGUAGE CPP, DeriveDataTypeable #-} +{-# LANGUAGE CPP, DeriveDataTypeable, DeriveGeneric #-} -- | LaTeX syntax description in the definition of the 'LaTeX' datatype. -- If you want to add new commands or environments not defined in @@ -29,11 +29,16 @@ import Data.Text (Text,pack) import qualified Data.Text import Data.Monoid +#if MIN_VERSION_base(4,9,0) +import qualified Data.Semigroup as Semigroup +#endif import Data.String import Control.Applicative import Control.Monad (replicateM) import Data.Functor.Identity (runIdentity) +import Data.Data (Data) import Data.Typeable +import GHC.Generics (Generic) import Test.QuickCheck -- | Measure units defined in LaTeX. Use 'CustomMeasure' to use commands like 'textwidth'. @@ -51,11 +56,11 @@ | Ex Double -- ^ The height of an \"x\" in the current font. | Em Double -- ^ The width of an \"M\" in the current font. | CustomMeasure LaTeX -- ^ You can introduce a 'LaTeX' expression as a measure. - deriving (Eq, Show) + deriving (Data, Eq, Generic, Show, Typeable) -- | Different types of syntax for mathematical expressions. data MathType = Parentheses | Square | Dollar - deriving (Eq,Show) + deriving (Data, Eq, Generic, Show, Typeable) -- | Type of @LaTeX@ blocks. data LaTeX = @@ -78,7 +83,7 @@ -- Use '<>' preferably. | TeXEmpty -- ^ An empty block. -- /Neutral element/ of '<>'. - deriving (Eq,Show,Typeable) + deriving (Data, Eq, Generic, Show, Typeable) -- | An argument for a 'LaTeX' command or environment. data TeXArg = @@ -89,7 +94,7 @@ | MSymArg [LaTeX] -- ^ Version of 'SymArg' with multiple options. | ParArg LaTeX -- ^ An argument enclosed between @(@ and @)@. | MParArg [LaTeX] -- ^ Version of 'ParArg' with multiple options. - deriving (Eq,Show) + deriving (Data, Eq, Generic, Show, Typeable) -- Monoid instance for 'LaTeX'. @@ -111,6 +116,11 @@ (<>) = mappend #endif +#if MIN_VERSION_base(4,9,0) +instance Semigroup.Semigroup LaTeX where + (<>) = mappend +#endif + -- | Method 'fromString' escapes LaTeX reserved characters using 'protectString'. instance IsString LaTeX where fromString = TeXRaw . fromString . protectString diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/HaTeX-3.17.1.0/Text/LaTeX/Base/Writer.hs new/HaTeX-3.17.2.0/Text/LaTeX/Base/Writer.hs --- old/HaTeX-3.17.1.0/Text/LaTeX/Base/Writer.hs 2016-11-08 06:03:40.000000000 +0100 +++ new/HaTeX-3.17.2.0/Text/LaTeX/Base/Writer.hs 2016-12-22 06:24:38.000000000 +0100 @@ -192,11 +192,11 @@ return p -- | A helper function for building monad transformers, e.g. --- @@ --- instance MonadReader r m => MonadReader r (LaTeXT m) where --- ask = lift ask --- local = mapLaTeXT . local --- @@ +-- +-- > instance MonadReader r m => MonadReader r (LaTeXT m) where +-- > ask = lift ask +-- > local = mapLaTeXT . local +-- -- This declaration could be included here, but it would add a -- dependency on mtl. mapLaTeXT :: (m (a, LaTeX) -> m (a, LaTeX)) -> LaTeXT m a -> LaTeXT m a
