Hello community,
here is the log from the commit of package ghc-yesod-static for openSUSE:Factory checked in at 2016-11-13 23:02:34
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/ghc-yesod-static (Old)
and /work/SRC/openSUSE:Factory/.ghc-yesod-static.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "ghc-yesod-static"
Changes:
--------
--- /work/SRC/openSUSE:Factory/ghc-yesod-static/ghc-yesod-static.changes 2016-10-23 12:51:17.000000000 +0200
+++ /work/SRC/openSUSE:Factory/.ghc-yesod-static.new/ghc-yesod-static.changes 2016-11-13 23:03:05.000000000 +0100
@@ -1,0 +2,5 @@
+Mon Oct 17 15:38:04 UTC 2016 - psimons@suse.com
+
+- Update to version 1.5.0.5 with cabal2obs.
+
+-------------------------------------------------------------------
Old:
----
yesod-static-1.5.0.4.tar.gz
New:
----
yesod-static-1.5.0.5.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ ghc-yesod-static.spec ++++++
--- /var/tmp/diff_new_pack.K4ywXC/_old 2016-11-13 23:03:06.000000000 +0100
+++ /var/tmp/diff_new_pack.K4ywXC/_new 2016-11-13 23:03:06.000000000 +0100
@@ -19,7 +19,7 @@
%global pkg_name yesod-static
%bcond_with tests
Name: ghc-%{pkg_name}
-Version: 1.5.0.4
+Version: 1.5.0.5
Release: 0
Summary: Static file serving subsite for Yesod Web Framework
License: MIT
++++++ yesod-static-1.5.0.4.tar.gz -> yesod-static-1.5.0.5.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/yesod-static-1.5.0.4/ChangeLog.md new/yesod-static-1.5.0.5/ChangeLog.md
--- old/yesod-static-1.5.0.4/ChangeLog.md 2016-09-02 11:31:31.000000000 +0200
+++ new/yesod-static-1.5.0.5/ChangeLog.md 2016-10-14 13:00:05.000000000 +0200
@@ -1,3 +1,7 @@
+## 1.5.0.5
+
+* Avoid lazy I/O in mkEmbeddedStatic (fixes [#149](https://github.com/yesodweb/yesod/issues/149))
+
## 1.5.0.4
* Doc tweaks
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/yesod-static-1.5.0.4/Yesod/EmbeddedStatic/Generators.hs new/yesod-static-1.5.0.5/Yesod/EmbeddedStatic/Generators.hs
--- old/yesod-static-1.5.0.4/Yesod/EmbeddedStatic/Generators.hs 2016-09-02 11:31:31.000000000 +0200
+++ new/yesod-static-1.5.0.5/Yesod/EmbeddedStatic/Generators.hs 2016-10-14 13:00:05.000000000 +0200
@@ -43,6 +43,7 @@
import System.Directory (doesDirectoryExist, getDirectoryContents, findExecutable)
import System.FilePath ((>))
import Text.Jasmine (minifym)
+import qualified Data.ByteString as BS
import qualified Data.ByteString.Lazy as BL
import qualified Data.Conduit.List as C
import Data.Conduit.Binary (sourceHandle)
@@ -71,8 +72,9 @@
ebHaskellName = Just $ pathToName loc
, ebLocation = loc
, ebMimeType = mime
- , ebProductionContent = BL.readFile f
- , ebDevelReload = [| BL.readFile $(litE $ stringL f) |]
+ , ebProductionContent = fmap BL.fromStrict (BS.readFile f)
+ , ebDevelReload = [| fmap BL.fromStrict
+ (BS.readFile $(litE $ stringL f)) |]
}
return [entry]
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/yesod-static-1.5.0.4/yesod-static.cabal new/yesod-static-1.5.0.5/yesod-static.cabal
--- old/yesod-static-1.5.0.4/yesod-static.cabal 2016-09-02 11:31:31.000000000 +0200
+++ new/yesod-static-1.5.0.5/yesod-static.cabal 2016-10-14 13:00:05.000000000 +0200
@@ -1,5 +1,5 @@
name: yesod-static
-version: 1.5.0.4
+version: 1.5.0.5
license: MIT
license-file: LICENSE
author: Michael Snoyman