Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package ghc-file-embed for openSUSE:Factory 
checked in at 2024-02-06 16:34:41
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/ghc-file-embed (Old)
 and      /work/SRC/openSUSE:Factory/.ghc-file-embed.new.1815 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "ghc-file-embed"

Tue Feb  6 16:34:41 2024 rev:19 rq:1144416 version:0.0.16.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/ghc-file-embed/ghc-file-embed.changes    
2023-04-04 21:20:12.861111577 +0200
+++ /work/SRC/openSUSE:Factory/.ghc-file-embed.new.1815/ghc-file-embed.changes  
2024-02-06 16:35:15.380584966 +0100
@@ -1,0 +2,8 @@
+Sun Jan 28 06:59:04 UTC 2024 - Peter Simons <psim...@suse.com>
+
+- Update file-embed to version 0.0.16.0.
+  ## 0.0.16.0
+
+  * Add `embedFileRelative`
+
+-------------------------------------------------------------------

Old:
----
  file-embed-0.0.15.0.tar.gz

New:
----
  file-embed-0.0.16.0.tar.gz

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

Other differences:
------------------
++++++ ghc-file-embed.spec ++++++
--- /var/tmp/diff_new_pack.e7LQod/_old  2024-02-06 16:35:15.788599694 +0100
+++ /var/tmp/diff_new_pack.e7LQod/_new  2024-02-06 16:35:15.788599694 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package ghc-file-embed
 #
-# Copyright (c) 2023 SUSE LLC
+# Copyright (c) 2024 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -20,7 +20,7 @@
 %global pkgver %{pkg_name}-%{version}
 %bcond_with tests
 Name:           ghc-%{pkg_name}
-Version:        0.0.15.0
+Version:        0.0.16.0
 Release:        0
 Summary:        Use Template Haskell to embed file contents directly
 License:        BSD-2-Clause

++++++ file-embed-0.0.15.0.tar.gz -> file-embed-0.0.16.0.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/file-embed-0.0.15.0/ChangeLog.md 
new/file-embed-0.0.16.0/ChangeLog.md
--- old/file-embed-0.0.15.0/ChangeLog.md        2021-08-29 15:06:51.000000000 
+0200
+++ new/file-embed-0.0.16.0/ChangeLog.md        2024-01-28 07:58:34.000000000 
+0100
@@ -1,5 +1,9 @@
 # ChangeLog for file-embed
 
+## 0.0.16.0
+
+* Add `embedFileRelative`
+
 ## 0.0.15.0
 
 * Add `makeRelativeToLocationPredicate`
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/file-embed-0.0.15.0/Data/FileEmbed.hs 
new/file-embed-0.0.16.0/Data/FileEmbed.hs
--- old/file-embed-0.0.15.0/Data/FileEmbed.hs   2021-08-29 15:06:51.000000000 
+0200
+++ new/file-embed-0.0.16.0/Data/FileEmbed.hs   2024-01-28 07:58:34.000000000 
+0100
@@ -19,6 +19,7 @@
 module Data.FileEmbed
     ( -- * Embed at compile time
       embedFile
+    , embedFileRelative
     , embedFileIfExists
     , embedOneFileOf
     , embedDir
@@ -63,7 +64,7 @@
 import System.Directory (doesDirectoryExist, doesFileExist,
                          getDirectoryContents, canonicalizePath)
 import Control.Exception (throw, tryJust, ErrorCall(..))
-import Control.Monad (filterM, guard)
+import Control.Monad ((<=<), filterM, guard)
 import qualified Data.ByteString as B
 import qualified Data.ByteString.Char8 as B8
 import Control.Arrow ((&&&), second)
@@ -90,6 +91,12 @@
 #endif
   (runIO $ B.readFile fp) >>= bsToExp
 
+-- | Embed a single file in your source code.
+--   Unlike 'embedFile', path is given relative to project root.
+-- @since 0.0.16.0
+embedFileRelative :: FilePath -> Q Exp
+embedFileRelative = embedFile <=< makeRelativeToProject
+
 -- | Maybe embed a single file in your source code depending on whether or not 
file exists.
 --
 -- Warning: When a build is compiled with the file missing, a recompile when 
the file exists might not trigger an embed of the file.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/file-embed-0.0.15.0/file-embed.cabal 
new/file-embed-0.0.16.0/file-embed.cabal
--- old/file-embed-0.0.15.0/file-embed.cabal    2021-08-29 15:06:51.000000000 
+0200
+++ new/file-embed-0.0.16.0/file-embed.cabal    2024-01-28 07:58:34.000000000 
+0100
@@ -1,5 +1,5 @@
 name:            file-embed
-version:         0.0.15.0
+version:         0.0.16.0
 license:         BSD2
 license-file:    LICENSE
 author:          Michael Snoyman <mich...@snoyman.com>

Reply via email to