Hello community, here is the log from the commit of package ghc-shakespeare for openSUSE:Factory checked in at 2016-04-30 23:30:31 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/ghc-shakespeare (Old) and /work/SRC/openSUSE:Factory/.ghc-shakespeare.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "ghc-shakespeare" Changes: -------- --- /work/SRC/openSUSE:Factory/ghc-shakespeare/ghc-shakespeare.changes 2016-04-22 16:25:29.000000000 +0200 +++ /work/SRC/openSUSE:Factory/.ghc-shakespeare.new/ghc-shakespeare.changes 2016-04-30 23:30:32.000000000 +0200 @@ -1,0 +2,5 @@ +Tue Apr 26 08:46:49 UTC 2016 - [email protected] + +- update to 2.0.8.2 + +------------------------------------------------------------------- Old: ---- shakespeare-2.0.8.1.tar.gz New: ---- shakespeare-2.0.8.2.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ ghc-shakespeare.spec ++++++ --- /var/tmp/diff_new_pack.gU27AD/_old 2016-04-30 23:30:33.000000000 +0200 +++ /var/tmp/diff_new_pack.gU27AD/_new 2016-04-30 23:30:33.000000000 +0200 @@ -20,7 +20,7 @@ %bcond_with tests Name: ghc-shakespeare -Version: 2.0.8.1 +Version: 2.0.8.2 Release: 0 Summary: A toolkit for making compile-time interpolated templates Group: System/Libraries ++++++ shakespeare-2.0.8.1.tar.gz -> shakespeare-2.0.8.2.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/shakespeare-2.0.8.1/Text/MkSizeType.hs new/shakespeare-2.0.8.2/Text/MkSizeType.hs --- old/shakespeare-2.0.8.1/Text/MkSizeType.hs 2016-04-15 11:13:43.000000000 +0200 +++ new/shakespeare-2.0.8.2/Text/MkSizeType.hs 2016-04-24 15:29:13.000000000 +0200 @@ -31,7 +31,7 @@ derives = map mkName ["Eq", "Ord"] showInstanceDec :: Name -> String -> Dec -showInstanceDec name unit' = InstanceD [] (instanceType "Show" name) [showDec] +showInstanceDec name unit' = instanceD [] (instanceType "Show" name) [showDec] where showSize = VarE $ mkName "showSize" x = mkName "x" unit = LitE $ StringL unit' @@ -40,17 +40,17 @@ showBody = NormalB $ AppE (AppE showSize $ VarE x) unit numInstanceDec :: Name -> Dec -numInstanceDec name = InstanceD [] (instanceType "Num" name) decs +numInstanceDec name = instanceD [] (instanceType "Num" name) decs where decs = map (binaryFunDec name) ["+", "*", "-"] ++ map (unariFunDec1 name) ["abs", "signum"] ++ [unariFunDec2 name "fromInteger"] fractionalInstanceDec :: Name -> Dec -fractionalInstanceDec name = InstanceD [] (instanceType "Fractional" name) decs +fractionalInstanceDec name = instanceD [] (instanceType "Fractional" name) decs where decs = [binaryFunDec name "/", unariFunDec2 name "fromRational"] toCssInstanceDec :: Name -> Dec -toCssInstanceDec name = InstanceD [] (instanceType "ToCss" name) [toCssDec] +toCssInstanceDec name = instanceD [] (instanceType "ToCss" name) [toCssDec] where toCssDec = FunD (mkName "toCss") [Clause [] showBody []] showBody = NormalB $ (AppE dot from) `AppE` ((AppE dot pack) `AppE` show') from = VarE 'fromLazyText @@ -92,3 +92,10 @@ notStrict :: Strict notStrict = NotStrict #endif + +instanceD :: Cxt -> Type -> [Dec] -> Dec +#if MIN_VERSION_template_haskell(2,11,0) +instanceD = InstanceD Nothing +#else +instanceD = InstanceD +#endif diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/shakespeare-2.0.8.1/Text/Shakespeare/I18N.hs new/shakespeare-2.0.8.2/Text/Shakespeare/I18N.hs --- old/shakespeare-2.0.8.1/Text/Shakespeare/I18N.hs 2016-04-15 11:13:43.000000000 +0200 +++ new/shakespeare-2.0.8.2/Text/Shakespeare/I18N.hs 2016-04-24 15:29:13.000000000 +0200 @@ -177,7 +177,7 @@ #endif (map (toCon dt) sdef) []) :) else id) - [ InstanceD + [ instanceD [] (ConT ''RenderMessage `AppT` (ConT $ mkName master) `AppT` ConT mname) [ FunD (mkName "renderMessage") $ c1 ++ c2 ++ [c3] @@ -414,3 +414,10 @@ notStrict :: Strict notStrict = NotStrict #endif + +instanceD :: Cxt -> Type -> [Dec] -> Dec +#if MIN_VERSION_template_haskell(2,11,0) +instanceD = InstanceD Nothing +#else +instanceD = InstanceD +#endif diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/shakespeare-2.0.8.1/shakespeare.cabal new/shakespeare-2.0.8.2/shakespeare.cabal --- old/shakespeare-2.0.8.1/shakespeare.cabal 2016-04-15 11:13:43.000000000 +0200 +++ new/shakespeare-2.0.8.2/shakespeare.cabal 2016-04-24 15:29:42.000000000 +0200 @@ -1,5 +1,5 @@ name: shakespeare -version: 2.0.8.1 +version: 2.0.8.2 license: MIT license-file: LICENSE author: Michael Snoyman <[email protected]>
