Hello community, here is the log from the commit of package ghc-file-embed for openSUSE:Factory checked in at 2020-06-19 17:12:49 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/ghc-file-embed (Old) and /work/SRC/openSUSE:Factory/.ghc-file-embed.new.3606 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "ghc-file-embed" Fri Jun 19 17:12:49 2020 rev:12 rq:815092 version:0.0.12.0 Changes: -------- --- /work/SRC/openSUSE:Factory/ghc-file-embed/ghc-file-embed.changes 2020-03-09 14:16:14.370619545 +0100 +++ /work/SRC/openSUSE:Factory/.ghc-file-embed.new.3606/ghc-file-embed.changes 2020-06-19 17:12:52.922050178 +0200 @@ -2 +2 @@ -Thu Feb 27 14:17:45 UTC 2020 - psim...@suse.com +Tue Jun 9 09:26:17 UTC 2020 - psim...@suse.com @@ -4,2 +4 @@ -- Update file-embed to version 0.0.11.2. - ## 0.0.11.2 +- Add file-embed at version 0.0.12.0. @@ -7,73 +5,0 @@ - * Haddock markup fix - -------------------------------------------------------------------- -Fri Dec 20 03:02:06 UTC 2019 - psim...@suse.com - -- Update file-embed to version 0.0.11.1. - # ChangeLog for file-embed - - ## 0.0.11.1 - - * Support GHC 8.10 - -------------------------------------------------------------------- -Fri Nov 8 16:13:44 UTC 2019 - Peter Simons <psim...@suse.com> - -- Drop obsolete group attributes. - -------------------------------------------------------------------- -Sat Oct 20 11:31:30 UTC 2018 - Peter Simons <psim...@suse.com> - -- Use https URL to refer to bugs.opensuse.org. - -------------------------------------------------------------------- -Tue Jul 31 14:10:04 UTC 2018 - psim...@suse.com - -- Update file-embed to version 0.0.11. - ## 0.0.11 - - * embedDirListing [#26](https://github.com/snoyberg/file-embed/pull/26) - -------------------------------------------------------------------- -Wed Jul 18 14:26:24 UTC 2018 - psim...@suse.com - -- Cosmetic: replace tabs with blanks, strip trailing white space, - and update copyright headers with spec-cleaner. - -------------------------------------------------------------------- -Mon May 14 17:02:11 UTC 2018 - psim...@suse.com - -- Update file-embed to version 0.0.10.1. - * Minor doc improvements - -------------------------------------------------------------------- -Thu Aug 3 15:38:38 UTC 2017 - psim...@suse.com - -- Updated with latest spec-cleaner version 0.9.8-8-geadfbbf. - -------------------------------------------------------------------- -Sun Jul 10 17:15:55 UTC 2016 - psim...@suse.com - -- Update to version 0.0.10 revision 0 with cabal2obs. - -------------------------------------------------------------------- -Tue Apr 26 08:25:43 UTC 2016 - mimi...@gmail.com - -- update to 0.0.10 -* makeRelativeToProject - -------------------------------------------------------------------- -Fri Jan 22 08:46:18 UTC 2016 - mimi...@gmail.com - -- update to 0.0.9.1 -* embedStringFile - -------------------------------------------------------------------- -Mon Nov 23 09:56:34 UTC 2015 - mimi...@gmail.com - -- correct licence to BSD-2-Clause - -------------------------------------------------------------------- -Tue Nov 17 19:28:15 UTC 2015 - mimi...@gmail.com - -- initial commit Old: ---- file-embed-0.0.11.2.tar.gz New: ---- file-embed-0.0.12.0.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ ghc-file-embed.spec ++++++ --- /var/tmp/diff_new_pack.JDjxF6/_old 2020-06-19 17:12:53.518052172 +0200 +++ /var/tmp/diff_new_pack.JDjxF6/_new 2020-06-19 17:12:53.518052172 +0200 @@ -1,7 +1,7 @@ # # spec file for package ghc-file-embed # -# Copyright (c) 2020 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2020 SUSE LLC # # 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 file-embed %bcond_with tests Name: ghc-%{pkg_name} -Version: 0.0.11.2 +Version: 0.0.12.0 Release: 0 Summary: Use Template Haskell to embed file contents directly License: BSD-2-Clause ++++++ file-embed-0.0.11.2.tar.gz -> file-embed-0.0.12.0.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/file-embed-0.0.11.2/ChangeLog.md new/file-embed-0.0.12.0/ChangeLog.md --- old/file-embed-0.0.11.2/ChangeLog.md 2020-02-27 10:20:24.000000000 +0100 +++ new/file-embed-0.0.12.0/ChangeLog.md 2020-05-12 10:03:18.000000000 +0200 @@ -1,5 +1,9 @@ # ChangeLog for file-embed +## 0.0.12.0 + +* Use the `Bytes` literal on newer GHCs to reduce memory usage during compilation [#36](https://github.com/snoyberg/file-embed/pull/36) + ## 0.0.11.2 * Haddock markup fix diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/file-embed-0.0.11.2/Data/FileEmbed.hs new/file-embed-0.0.12.0/Data/FileEmbed.hs --- old/file-embed-0.0.11.2/Data/FileEmbed.hs 2020-02-27 10:19:11.000000000 +0100 +++ new/file-embed-0.0.12.0/Data/FileEmbed.hs 2020-05-12 10:02:47.000000000 +0200 @@ -46,11 +46,7 @@ import Language.Haskell.TH.Syntax ( Exp (AppE, ListE, LitE, TupE, SigE, VarE) -#if MIN_VERSION_template_haskell(2,5,0) - , Lit (StringL, StringPrimL, IntegerL) -#else - , Lit (StringL, IntegerL) -#endif + , Lit (..) , Q , runIO , qLocation, loc_filename @@ -58,6 +54,10 @@ , Quasi(qAddDependentFile) #endif ) +#if MIN_VERSION_template_haskell(2,16,0) +import Language.Haskell.TH ( mkBytes, bytesPrimL ) +import qualified Data.ByteString.Internal as B +#endif import System.Directory (doesDirectoryExist, doesFileExist, getDirectoryContents, canonicalizePath) import Control.Exception (throw, ErrorCall(..)) @@ -155,7 +155,11 @@ return $ VarE 'unsafePerformIO `AppE` (VarE 'unsafePackAddressLen `AppE` LitE (IntegerL $ fromIntegral $ B8.length bs) -#if MIN_VERSION_template_haskell(2, 8, 0) +#if MIN_VERSION_template_haskell(2, 16, 0) + `AppE` LitE (bytesPrimL ( + let B.PS ptr off sz = bs + in mkBytes ptr (fromIntegral off) (fromIntegral sz)))) +#elif MIN_VERSION_template_haskell(2, 8, 0) `AppE` LitE (StringPrimL $ B.unpack bs)) #else `AppE` LitE (StringPrimL $ B8.unpack bs)) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/file-embed-0.0.11.2/README.md new/file-embed-0.0.12.0/README.md --- old/file-embed-0.0.11.2/README.md 2020-02-27 10:19:11.000000000 +0100 +++ new/file-embed-0.0.12.0/README.md 2020-04-26 09:35:41.000000000 +0200 @@ -1,8 +1,6 @@ ## file-embed -[![Build Status](https://travis-ci.org/snoyberg/file-embed.svg?branch=master)](https://travis-ci.org/snoyberg/file-embed) -[![Build status](https://ci.appveyor.com/api/projects/status/vlgo8uudpt374uoy/branch/master?svg=true)](https://ci.appveyor.com/project/snoyberg/file-embed/branch/master) - +![Tests](https://github.com/snoyberg/file-embed/workflows/Tests/badge.svg) Use Template Haskell to read a file or all the files in a directory, and turn them into (path, bytestring) pairs embedded in your haskell code. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/file-embed-0.0.11.2/file-embed.cabal new/file-embed-0.0.12.0/file-embed.cabal --- old/file-embed-0.0.11.2/file-embed.cabal 2020-02-27 10:20:11.000000000 +0100 +++ new/file-embed-0.0.12.0/file-embed.cabal 2020-05-12 11:56:06.000000000 +0200 @@ -1,5 +1,5 @@ name: file-embed -version: 0.0.11.2 +version: 0.0.12.0 license: BSD3 license-file: LICENSE author: Michael Snoyman <mich...@snoyman.com> @@ -10,7 +10,7 @@ embedded in your Haskell code. category: Data stability: Stable -cabal-version: >= 1.8 +cabal-version: >= 1.10 build-type: Simple homepage: https://github.com/snoyberg/file-embed extra-source-files: test/main.hs, test/sample/foo, test/sample/bar/baz, @@ -18,6 +18,7 @@ README.md library + default-language: Haskell2010 build-depends: base >= 4.9.1 && < 5 , bytestring >= 0.9.1.4 , directory >= 1.0.0.3 @@ -27,6 +28,7 @@ ghc-options: -Wall test-suite test + default-language: Haskell2010 type: exitcode-stdio-1.0 main-is: main.hs hs-source-dirs: test