commit ghc-yesod-form for openSUSE:Factory

2020-08-28 Thread root
Hello community,

here is the log from the commit of package ghc-yesod-form for openSUSE:Factory 
checked in at 2020-08-28 21:41:58

Comparing /work/SRC/openSUSE:Factory/ghc-yesod-form (Old)
 and  /work/SRC/openSUSE:Factory/.ghc-yesod-form.new.3399 (New)


Package is "ghc-yesod-form"

Fri Aug 28 21:41:58 2020 rev:2 rq:829511 version:1.6.7

Changes:

--- /work/SRC/openSUSE:Factory/ghc-yesod-form/ghc-yesod-form.changes
2020-06-19 17:06:22.956946698 +0200
+++ /work/SRC/openSUSE:Factory/.ghc-yesod-form.new.3399/ghc-yesod-form.changes  
2020-08-28 21:41:58.500900453 +0200
@@ -1,0 +2,10 @@
+Wed Aug 19 06:42:09 UTC 2020 - Michel Normand 
+
+- Add _constraints with min 6GB disk space for ppc64/ppc64le
+
+---
+Tue Aug 18 10:46:47 UTC 2020 - Peter Simons 
+
+- Replace %setup -q with the more modern %autosetup macro.
+
+---

New:

  _constraints



Other differences:
--
++ ghc-yesod-form.spec ++
--- /var/tmp/diff_new_pack.NlJBSC/_old  2020-08-28 21:41:59.020900644 +0200
+++ /var/tmp/diff_new_pack.NlJBSC/_new  2020-08-28 21:41:59.024900646 +0200
@@ -71,7 +71,7 @@
 This package provides the Haskell %{pkg_name} library development files.
 
 %prep
-%setup -q -n %{pkg_name}-%{version}
+%autosetup -n %{pkg_name}-%{version}
 
 %build
 %ghc_lib_build

++ _constraints ++

  

  ppc64
  ppc64le



  6


  





commit ghc-yesod-form for openSUSE:Factory

2020-06-19 Thread root
Hello community,

here is the log from the commit of package ghc-yesod-form for openSUSE:Factory 
checked in at 2020-06-19 17:06:20

Comparing /work/SRC/openSUSE:Factory/ghc-yesod-form (Old)
 and  /work/SRC/openSUSE:Factory/.ghc-yesod-form.new.3606 (New)


Package is "ghc-yesod-form"

Fri Jun 19 17:06:20 2020 rev:1 rq:814999 version:1.6.7

Changes:

New Changes file:

--- /dev/null   2020-05-28 02:28:09.919761697 +0200
+++ /work/SRC/openSUSE:Factory/.ghc-yesod-form.new.3606/ghc-yesod-form.changes  
2020-06-19 17:06:22.956946698 +0200
@@ -0,0 +1,5 @@
+---
+Tue Jun  9 09:26:17 UTC 2020 - psim...@suse.com
+
+- Add yesod-form at version 1.6.7.
+

New:

  ghc-yesod-form.changes
  ghc-yesod-form.spec
  yesod-form-1.6.7.tar.gz



Other differences:
--
++ ghc-yesod-form.spec ++
#
# spec file for package ghc-yesod-form
#
# 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
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via https://bugs.opensuse.org/
#


%global pkg_name yesod-form
%bcond_with tests
Name:   ghc-%{pkg_name}
Version:1.6.7
Release:0
Summary:Form handling support for Yesod Web Framework
License:MIT
URL:https://hackage.haskell.org/package/%{pkg_name}
Source0:
https://hackage.haskell.org/package/%{pkg_name}-%{version}/%{pkg_name}-%{version}.tar.gz
BuildRequires:  ghc-Cabal-devel
BuildRequires:  ghc-aeson-devel
BuildRequires:  ghc-attoparsec-devel
BuildRequires:  ghc-blaze-builder-devel
BuildRequires:  ghc-blaze-html-devel
BuildRequires:  ghc-blaze-markup-devel
BuildRequires:  ghc-byteable-devel
BuildRequires:  ghc-bytestring-devel
BuildRequires:  ghc-containers-devel
BuildRequires:  ghc-data-default-devel
BuildRequires:  ghc-email-validate-devel
BuildRequires:  ghc-network-uri-devel
BuildRequires:  ghc-persistent-devel
BuildRequires:  ghc-resourcet-devel
BuildRequires:  ghc-rpm-macros
BuildRequires:  ghc-semigroups-devel
BuildRequires:  ghc-shakespeare-devel
BuildRequires:  ghc-text-devel
BuildRequires:  ghc-time-devel
BuildRequires:  ghc-transformers-devel
BuildRequires:  ghc-wai-devel
BuildRequires:  ghc-xss-sanitize-devel
BuildRequires:  ghc-yesod-core-devel
BuildRequires:  ghc-yesod-persistent-devel
%if %{with tests}
BuildRequires:  ghc-hspec-devel
%endif

%description
API docs and the README are available at
. Third-party packages which you
can find useful:  - richtext form fields (currntly it provides only
Summernote support).

%package devel
Summary:Haskell %{pkg_name} library development files
Requires:   %{name} = %{version}-%{release}
Requires:   ghc-compiler = %{ghc_version}
Requires(post): ghc-compiler = %{ghc_version}
Requires(postun): ghc-compiler = %{ghc_version}

%description devel
This package provides the Haskell %{pkg_name} library development files.

%prep
%setup -q -n %{pkg_name}-%{version}

%build
%ghc_lib_build

%install
%ghc_lib_install

%check
%cabal_test

%post devel
%ghc_pkg_recache

%postun devel
%ghc_pkg_recache

%files -f %{name}.files
%license LICENSE

%files devel -f %{name}-devel.files
%doc ChangeLog.md README.md

%changelog



commit ghc-yesod-form for openSUSE:Factory

2017-08-31 Thread root
Hello community,

here is the log from the commit of package ghc-yesod-form for openSUSE:Factory 
checked in at 2017-08-31 21:02:08

Comparing /work/SRC/openSUSE:Factory/ghc-yesod-form (Old)
 and  /work/SRC/openSUSE:Factory/.ghc-yesod-form.new (New)


Package is "ghc-yesod-form"

Thu Aug 31 21:02:08 2017 rev:8 rq:513547 version:1.4.13

Changes:

--- /work/SRC/openSUSE:Factory/ghc-yesod-form/ghc-yesod-form.changes
2017-06-04 01:59:37.105985606 +0200
+++ /work/SRC/openSUSE:Factory/.ghc-yesod-form.new/ghc-yesod-form.changes   
2017-08-31 21:02:08.683522842 +0200
@@ -1,0 +2,5 @@
+Thu Jul 27 14:05:38 UTC 2017 - psim...@suse.com
+
+- Update to version 1.4.13.
+
+---

Old:

  yesod-form-1.4.12.tar.gz

New:

  yesod-form-1.4.13.tar.gz



Other differences:
--
++ ghc-yesod-form.spec ++
--- /var/tmp/diff_new_pack.Xt7C1F/_old  2017-08-31 21:02:09.587395846 +0200
+++ /var/tmp/diff_new_pack.Xt7C1F/_new  2017-08-31 21:02:09.587395846 +0200
@@ -19,7 +19,7 @@
 %global pkg_name yesod-form
 %bcond_with tests
 Name:   ghc-%{pkg_name}
-Version:1.4.12
+Version:1.4.13
 Release:0
 Summary:Form handling support for Yesod Web Framework
 License:MIT

++ yesod-form-1.4.12.tar.gz -> yesod-form-1.4.13.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/yesod-form-1.4.12/ChangeLog.md 
new/yesod-form-1.4.13/ChangeLog.md
--- old/yesod-form-1.4.12/ChangeLog.md  2017-05-13 23:23:44.0 +0200
+++ new/yesod-form-1.4.13/ChangeLog.md  2017-07-20 12:41:52.0 +0200
@@ -1,3 +1,7 @@
+## 1.4.13
+
+* Fixed `textareaField` `writeHtmlEscapedChar` trim "\r"
+
 ## 1.4.12
 
 * Password field does not remember its previous value
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/yesod-form-1.4.12/Yesod/Form/Fields.hs 
new/yesod-form-1.4.13/Yesod/Form/Fields.hs
--- old/yesod-form-1.4.12/Yesod/Form/Fields.hs  2017-04-12 09:57:39.0 
+0200
+++ new/yesod-form-1.4.13/Yesod/Form/Fields.hs  2017-07-20 12:41:52.0 
+0200
@@ -106,6 +106,10 @@
 
 import Yesod.Persist.Core
 
+#if !MIN_VERSION_base(4,8,0)
+import Data.Monoid
+#endif
+
 defaultFormMessage :: FormMessage -> Text
 defaultFormMessage = englishFormMessage
 
@@ -226,6 +230,7 @@
 . unTextarea
   where
 -- Taken from blaze-builder and modified with newline handling.
+writeHtmlEscapedChar '\r' = mempty
 writeHtmlEscapedChar '\n' = writeByteString ""
 writeHtmlEscapedChar c= B.writeHtmlEscapedChar c
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/yesod-form-1.4.12/yesod-form.cabal 
new/yesod-form-1.4.13/yesod-form.cabal
--- old/yesod-form-1.4.12/yesod-form.cabal  2017-05-13 23:23:29.0 
+0200
+++ new/yesod-form-1.4.13/yesod-form.cabal  2017-07-20 12:41:52.0 
+0200
@@ -1,5 +1,5 @@
 name:yesod-form
-version: 1.4.12
+version: 1.4.13
 license: MIT
 license-file:LICENSE
 author:  Michael Snoyman 




commit ghc-yesod-form for openSUSE:Factory

2017-06-03 Thread root
Hello community,

here is the log from the commit of package ghc-yesod-form for openSUSE:Factory 
checked in at 2017-06-04 01:59:35

Comparing /work/SRC/openSUSE:Factory/ghc-yesod-form (Old)
 and  /work/SRC/openSUSE:Factory/.ghc-yesod-form.new (New)


Package is "ghc-yesod-form"

Sun Jun  4 01:59:35 2017 rev:7 rq:499744 version:1.4.12

Changes:

--- /work/SRC/openSUSE:Factory/ghc-yesod-form/ghc-yesod-form.changes
2017-04-11 09:44:07.881826537 +0200
+++ /work/SRC/openSUSE:Factory/.ghc-yesod-form.new/ghc-yesod-form.changes   
2017-06-04 01:59:37.105985606 +0200
@@ -1,0 +2,5 @@
+Thu May 18 09:52:20 UTC 2017 - psim...@suse.com
+
+- Update to version 1.4.12 with cabal2obs.
+
+---

Old:

  yesod-form-1.4.11.tar.gz

New:

  yesod-form-1.4.12.tar.gz



Other differences:
--
++ ghc-yesod-form.spec ++
--- /var/tmp/diff_new_pack.Kz1GlL/_old  2017-06-04 01:59:37.625912155 +0200
+++ /var/tmp/diff_new_pack.Kz1GlL/_new  2017-06-04 01:59:37.629911590 +0200
@@ -19,7 +19,7 @@
 %global pkg_name yesod-form
 %bcond_with tests
 Name:   ghc-%{pkg_name}
-Version:1.4.11
+Version:1.4.12
 Release:0
 Summary:Form handling support for Yesod Web Framework
 License:MIT

++ yesod-form-1.4.11.tar.gz -> yesod-form-1.4.12.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/yesod-form-1.4.11/ChangeLog.md 
new/yesod-form-1.4.12/ChangeLog.md
--- old/yesod-form-1.4.11/ChangeLog.md  2017-02-28 09:37:07.0 +0100
+++ new/yesod-form-1.4.12/ChangeLog.md  2017-05-13 23:23:44.0 +0200
@@ -1,3 +1,7 @@
+## 1.4.12
+
+* Password field does not remember its previous value
+
 ## 1.4.11
 
 * Fix warnings
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/yesod-form-1.4.11/Yesod/Form/Fields.hs 
new/yesod-form-1.4.12/Yesod/Form/Fields.hs
--- old/yesod-form-1.4.11/Yesod/Form/Fields.hs  2017-02-05 13:38:01.0 
+0100
+++ new/yesod-form-1.4.12/Yesod/Form/Fields.hs  2017-04-12 09:57:39.0 
+0200
@@ -267,9 +267,9 @@
 passwordField :: Monad m => RenderMessage (HandlerSite m) FormMessage => Field 
m Text
 passwordField = Field
 { fieldParse = parseHelper $ Right
-, fieldView = \theId name attrs val isReq -> toWidget [hamlet|
+, fieldView = \theId name attrs _ isReq -> toWidget [hamlet|
 $newline never
-
+
 |]
 , fieldEnctype = UrlEncoded
 }
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/yesod-form-1.4.11/Yesod/Form/I18n/Chinese.hs 
new/yesod-form-1.4.12/Yesod/Form/I18n/Chinese.hs
--- old/yesod-form-1.4.11/Yesod/Form/I18n/Chinese.hs1970-01-01 
01:00:00.0 +0100
+++ new/yesod-form-1.4.12/Yesod/Form/I18n/Chinese.hs2017-04-12 
09:57:39.0 +0200
@@ -0,0 +1,26 @@
+{-# LANGUAGE OverloadedStrings #-}
+module Yesod.Form.I18n.Chinese where
+
+import Yesod.Form.Types (FormMessage (..))
+import Data.Monoid (mappend)
+import Data.Text (Text)
+
+chineseFormMessage :: FormMessage -> Text
+chineseFormMessage (MsgInvalidInteger t) = "无效的整数: " `Data.Monoid.mappend` t
+chineseFormMessage (MsgInvalidNumber t) = "无效的数字: " `mappend` t
+chineseFormMessage (MsgInvalidEntry t) = "无效的条目: " `mappend` t
+chineseFormMessage MsgInvalidTimeFormat = "无效的时间, 必须符合HH:MM[:SS]格式"
+chineseFormMessage MsgInvalidDay = "无效的日期, 必须符合-MM-DD格式"
+chineseFormMessage (MsgInvalidUrl t) = "无效的链接: " `mappend` t
+chineseFormMessage (MsgInvalidEmail t) = "无效的邮箱地址: " `mappend` t
+chineseFormMessage (MsgInvalidHour t) = "无效的小时: " `mappend` t
+chineseFormMessage (MsgInvalidMinute t) = "无效的分钟: " `mappend` t
+chineseFormMessage (MsgInvalidSecond t) = "无效的秒: " `mappend` t
+chineseFormMessage MsgCsrfWarning = "为了防备跨站请求伪造, 请确认表格提交."
+chineseFormMessage MsgValueRequired = "此项必填"
+chineseFormMessage (MsgInputNotFound t) = "输入找不到: " `mappend` t
+chineseFormMessage MsgSelectNone = "<空>"
+chineseFormMessage (MsgInvalidBool t) = "无效的逻辑值: " `mappend` t
+chineseFormMessage MsgBoolYes = "是"
+chineseFormMessage MsgBoolNo = "否"
+chineseFormMessage MsgDelete = "删除?"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/yesod-form-1.4.11/Yesod/Form/Input.hs 
new/yesod-form-1.4.12/Yesod/Form/Input.hs
--- old/yesod-form-1.4.11/Yesod/Form/Input.hs   2017-02-05 13:38:01.0 
+0100
+++ new/yesod-form-1.4.12/Yesod/Form/Input.hs   2017-05-12 07:26:42.0 
+0200
@@ -25,7 +25,7 @@
 type DText = [Text] -> [Text]
 
 -- | Type for a form which parses a value of type @a@ with the base monad @m@
--- (usually your @Handler@). Can can compose this using its @Applicative@ 
instance.
+-- (usually your @Handler@). 

commit ghc-yesod-form for openSUSE:Factory

2017-04-11 Thread root
Hello community,

here is the log from the commit of package ghc-yesod-form for openSUSE:Factory 
checked in at 2017-04-11 09:44:05

Comparing /work/SRC/openSUSE:Factory/ghc-yesod-form (Old)
 and  /work/SRC/openSUSE:Factory/.ghc-yesod-form.new (New)


Package is "ghc-yesod-form"

Tue Apr 11 09:44:05 2017 rev:6 rq:485178 version:1.4.11

Changes:

--- /work/SRC/openSUSE:Factory/ghc-yesod-form/ghc-yesod-form.changes
2017-02-21 13:46:17.28712 +0100
+++ /work/SRC/openSUSE:Factory/.ghc-yesod-form.new/ghc-yesod-form.changes   
2017-04-11 09:44:07.881826537 +0200
@@ -1,0 +2,5 @@
+Tue Mar  7 11:19:30 UTC 2017 - psim...@suse.com
+
+- Update to version 1.4.11 with cabal2obs.
+
+---

Old:

  yesod-form-1.4.10.tar.gz

New:

  yesod-form-1.4.11.tar.gz



Other differences:
--
++ ghc-yesod-form.spec ++
--- /var/tmp/diff_new_pack.5PEhz2/_old  2017-04-11 09:44:08.681713542 +0200
+++ /var/tmp/diff_new_pack.5PEhz2/_new  2017-04-11 09:44:08.681713542 +0200
@@ -19,7 +19,7 @@
 %global pkg_name yesod-form
 %bcond_with tests
 Name:   ghc-%{pkg_name}
-Version:1.4.10
+Version:1.4.11
 Release:0
 Summary:Form handling support for Yesod Web Framework
 License:MIT

++ yesod-form-1.4.10.tar.gz -> yesod-form-1.4.11.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/yesod-form-1.4.10/ChangeLog.md 
new/yesod-form-1.4.11/ChangeLog.md
--- old/yesod-form-1.4.10/ChangeLog.md  2017-02-02 08:54:00.0 +0100
+++ new/yesod-form-1.4.11/ChangeLog.md  2017-02-28 09:37:07.0 +0100
@@ -1,3 +1,9 @@
+## 1.4.11
+
+* Fix warnings
+* Fixed spelling errors and wording for `Yesod.Form.Functions.convertField`'s
+  documentation
+
 ## 1.4.10
 
 * Fixed `identifyForm` to properly return `FormMissing` for empty forms. 
[#1072](https://github.com/yesodweb/yesod/issues/1072)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/yesod-form-1.4.10/Yesod/Form/Fields.hs 
new/yesod-form-1.4.11/Yesod/Form/Fields.hs
--- old/yesod-form-1.4.10/Yesod/Form/Fields.hs  2016-09-25 13:37:06.0 
+0200
+++ new/yesod-form-1.4.11/Yesod/Form/Fields.hs  2017-02-05 13:38:01.0 
+0100
@@ -63,12 +63,10 @@
 import Yesod.Form.I18n.English
 import Yesod.Form.Functions (parseHelper)
 import Yesod.Core
-import Text.Hamlet
 import Text.Blaze (ToMarkup (toMarkup), unsafeByteString)
 #define ToHtml ToMarkup
 #define toHtml toMarkup
 #define preEscapedText preEscapedToMarkup
-import Text.Cassius
 import Data.Time (Day, TimeOfDay(..))
 import qualified Text.Email.Validate as Email
 import Data.Text.Encoding (encodeUtf8, decodeUtf8With)
@@ -88,7 +86,6 @@
 import qualified Blaze.ByteString.Builder.Html.Utf8 as B
 import Blaze.ByteString.Builder (writeByteString, toLazyByteString)
 import Blaze.ByteString.Builder.Internal.Write (fromWriteList)
-import Database.Persist (PersistEntityBackend)
 
 import Text.Blaze.Html.Renderer.String (renderHtml)
 import qualified Data.ByteString as S
@@ -96,11 +93,11 @@
 import Data.Text as T ( Text, append, concat, cons, head
   , intercalate, isPrefixOf, null, unpack, pack, splitOn
   )
-import qualified Data.Text as T (drop, dropWhile)  
+import qualified Data.Text as T (drop, dropWhile)
 import qualified Data.Text.Read
 
 import qualified Data.Map as Map
-import Yesod.Persist (selectList, runDB, Filter, SelectOpt, Key, YesodPersist, 
PersistEntity, PersistQuery)
+import Yesod.Persist (selectList, Filter, SelectOpt, Key)
 import Control.Arrow ((&&&))
 
 import Control.Applicative ((<$>), (<|>))
@@ -323,7 +320,7 @@
   where
 hour = do
 x <- digit
-y <- (return <$> digit) <|> return []
+y <- (return Control.Applicative.<$> digit) <|> return []
 let xy = x : y
 let i = read xy
 if i < 0 || i >= 24
@@ -442,13 +439,13 @@
 |]) -- inside
 
 -- | Creates a @\@ tag for selecting multiple options.
-multiSelectFieldList :: (Eq a, RenderMessage site FormMessage, RenderMessage 
site msg)
+multiSelectFieldList :: (Eq a, RenderMessage site msg)
  => [(msg, a)]
  -> Field (HandlerT site IO) [a]
 multiSelectFieldList = multiSelectField . optionsPairs
 
 -- | Creates a @\@ tag for selecting multiple options.
-multiSelectField :: (Eq a, RenderMessage site FormMessage)
+multiSelectField :: Eq a
  => HandlerT site IO (OptionList a)
  -> Field (HandlerT site IO) [a]
 multiSelectField ioptlist =
@@ -480,17 +477,17 @@
 radioFieldList = radioField . optionsPairs
 
 -- | Creates an input with @type="checkbox"@ for selecting 

commit ghc-yesod-form for openSUSE:Factory

2017-02-21 Thread root
Hello community,

here is the log from the commit of package ghc-yesod-form for openSUSE:Factory 
checked in at 2017-02-21 13:46:16

Comparing /work/SRC/openSUSE:Factory/ghc-yesod-form (Old)
 and  /work/SRC/openSUSE:Factory/.ghc-yesod-form.new (New)


Package is "ghc-yesod-form"

Changes:

--- /work/SRC/openSUSE:Factory/ghc-yesod-form/ghc-yesod-form.changes
2016-12-10 18:26:57.440724466 +0100
+++ /work/SRC/openSUSE:Factory/.ghc-yesod-form.new/ghc-yesod-form.changes   
2017-02-21 13:46:17.28712 +0100
@@ -1,0 +2,5 @@
+Sun Feb  5 19:31:59 UTC 2017 - psim...@suse.com
+
+- Update to version 1.4.10 with cabal2obs.
+
+---

Old:

  yesod-form-1.4.9.tar.gz

New:

  yesod-form-1.4.10.tar.gz



Other differences:
--
++ ghc-yesod-form.spec ++
--- /var/tmp/diff_new_pack.6zEAx8/_old  2017-02-21 13:46:18.026561508 +0100
+++ /var/tmp/diff_new_pack.6zEAx8/_new  2017-02-21 13:46:18.030560945 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package ghc-yesod-form
 #
-# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
 #
 # 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 yesod-form
 %bcond_with tests
 Name:   ghc-%{pkg_name}
-Version:1.4.9
+Version:1.4.10
 Release:0
 Summary:Form handling support for Yesod Web Framework
 License:MIT

++ yesod-form-1.4.9.tar.gz -> yesod-form-1.4.10.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/yesod-form-1.4.9/ChangeLog.md 
new/yesod-form-1.4.10/ChangeLog.md
--- old/yesod-form-1.4.9/ChangeLog.md   2016-11-14 06:18:27.0 +0100
+++ new/yesod-form-1.4.10/ChangeLog.md  2017-02-02 08:54:00.0 +0100
@@ -1,3 +1,7 @@
+## 1.4.10
+
+* Fixed `identifyForm` to properly return `FormMissing` for empty forms. 
[#1072](https://github.com/yesodweb/yesod/issues/1072)
+
 ## 1.4.9
 
 * Added a `ToValue` instance for `Enctype` 
[#1296](https://github.com/yesodweb/yesod/pull/1296)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/yesod-form-1.4.9/Yesod/Form/Functions.hs 
new/yesod-form-1.4.10/Yesod/Form/Functions.hs
--- old/yesod-form-1.4.9/Yesod/Form/Functions.hs2016-11-14 
06:18:27.0 +0100
+++ new/yesod-form-1.4.10/Yesod/Form/Functions.hs   2017-02-02 
08:54:00.0 +0100
@@ -62,7 +62,7 @@
 import Yesod.Core.Handler (defaultCsrfParamName)
 import Network.Wai (requestMethod)
 import Text.Hamlet (shamlet)
-import Data.Monoid (mempty)
+import Data.Monoid (mempty, (<>))
 import Data.Maybe (listToMaybe, fromMaybe)
 import qualified Data.Map as Map
 import qualified Data.Text.Encoding as TE
@@ -336,13 +336,13 @@
 -- Create hidden .
 let fragment' =
   [shamlet|
-
+
 #{fragment}
   |]
 
 -- Check if we got its value back.
 mp <- askParams
-let missing = (mp >>= Map.lookup identifyFormKey) /= Just [identVal]
+let missing = (mp >>= Map.lookup identifyFormKey) /= Just ["identify-" <> 
identVal]
 
 -- Run the form proper (with our hidden ).  If the
 -- data is missing, then do not provide any params to the
@@ -350,7 +350,11 @@
 -- doing this avoids having lots of fields with red errors.
 let eraseParams | missing   = local (\(_, h, l) -> (Nothing, h, l))
 | otherwise = id
-eraseParams (form fragment')
+( res', w) <- eraseParams (form fragment')
+
+-- Empty forms now properly return FormMissing. 
[#1072](https://github.com/yesodweb/yesod/issues/1072)
+let res = if missing then FormMissing else res'
+return ( res, w)
 
 identifyFormKey :: Text
 identifyFormKey = "_formid"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/yesod-form-1.4.9/yesod-form.cabal 
new/yesod-form-1.4.10/yesod-form.cabal
--- old/yesod-form-1.4.9/yesod-form.cabal   2016-11-14 06:18:27.0 
+0100
+++ new/yesod-form-1.4.10/yesod-form.cabal  2017-02-02 08:54:00.0 
+0100
@@ -1,5 +1,5 @@
 name:yesod-form
-version: 1.4.9
+version: 1.4.10
 license: MIT
 license-file:LICENSE
 author:  Michael Snoyman 




commit ghc-yesod-form for openSUSE:Factory

2016-11-04 Thread h_root
Hello community,

here is the log from the commit of package ghc-yesod-form for openSUSE:Factory 
checked in at 2016-11-04 21:01:05

Comparing /work/SRC/openSUSE:Factory/ghc-yesod-form (Old)
 and  /work/SRC/openSUSE:Factory/.ghc-yesod-form.new (New)


Package is "ghc-yesod-form"

Changes:

--- /work/SRC/openSUSE:Factory/ghc-yesod-form/ghc-yesod-form.changes
2016-07-20 09:22:19.0 +0200
+++ /work/SRC/openSUSE:Factory/.ghc-yesod-form.new/ghc-yesod-form.changes   
2016-11-04 21:01:06.0 +0100
@@ -1,0 +2,5 @@
+Sun Oct 30 16:27:03 UTC 2016 - psim...@suse.com
+
+- Update to version 1.4.8 with cabal2obs.
+
+---

Old:

  yesod-form-1.4.7.1.tar.gz

New:

  yesod-form-1.4.8.tar.gz



Other differences:
--
++ ghc-yesod-form.spec ++
--- /var/tmp/diff_new_pack.2AVODX/_old  2016-11-04 21:01:07.0 +0100
+++ /var/tmp/diff_new_pack.2AVODX/_new  2016-11-04 21:01:07.0 +0100
@@ -19,15 +19,14 @@
 %global pkg_name yesod-form
 %bcond_with tests
 Name:   ghc-%{pkg_name}
-Version:1.4.7.1
+Version:1.4.8
 Release:0
 Summary:Form handling support for Yesod Web Framework
 License:MIT
-Group:  System/Libraries
+Group:  Development/Languages/Other
 Url:https://hackage.haskell.org/package/%{pkg_name}
 Source0:
https://hackage.haskell.org/package/%{pkg_name}-%{version}/%{pkg_name}-%{version}.tar.gz
 BuildRequires:  ghc-Cabal-devel
-# Begin cabal-rpm deps:
 BuildRequires:  ghc-aeson-devel
 BuildRequires:  ghc-attoparsec-devel
 BuildRequires:  ghc-blaze-builder-devel
@@ -56,7 +55,6 @@
 %if %{with tests}
 BuildRequires:  ghc-hspec-devel
 %endif
-# End cabal-rpm deps
 
 %description
 API docs and the README are available at
@@ -79,20 +77,14 @@
 %prep
 %setup -q -n %{pkg_name}-%{version}
 
-
 %build
 %ghc_lib_build
 
-
 %install
 %ghc_lib_install
 
-
 %check
-%if %{with tests}
-%{cabal} test
-%endif
-
+%cabal_test
 
 %post devel
 %ghc_pkg_recache

++ yesod-form-1.4.7.1.tar.gz -> yesod-form-1.4.8.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/yesod-form-1.4.7.1/ChangeLog.md 
new/yesod-form-1.4.8/ChangeLog.md
--- old/yesod-form-1.4.7.1/ChangeLog.md 2015-12-03 19:55:30.0 +0100
+++ new/yesod-form-1.4.8/ChangeLog.md   2016-10-27 10:18:25.0 +0200
@@ -1,3 +1,7 @@
+## 1.4.8
+
+* Added Yesod.Form.I18n.Spanish
+
 ## 1.4.6
 
 * Functor instances for Option/OptionList
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/yesod-form-1.4.7.1/Yesod/Form/I18n/Spanish.hs 
new/yesod-form-1.4.8/Yesod/Form/I18n/Spanish.hs
--- old/yesod-form-1.4.7.1/Yesod/Form/I18n/Spanish.hs   1970-01-01 
01:00:00.0 +0100
+++ new/yesod-form-1.4.8/Yesod/Form/I18n/Spanish.hs 2016-10-27 
10:18:25.0 +0200
@@ -0,0 +1,27 @@
+{-# LANGUAGE OverloadedStrings #-}
+
+module Yesod.Form.I18n.Spanish where
+
+import Yesod.Form.Types (FormMessage (..))
+import Data.Monoid (mappend)
+import Data.Text (Text)
+
+spanishFormMessage :: FormMessage -> Text
+spanishFormMessage (MsgInvalidInteger t) = "Número entero inválido: " 
`mappend` t
+spanishFormMessage (MsgInvalidNumber t) = "Número inválido: " `mappend` t
+spanishFormMessage (MsgInvalidEntry t) = "Entrada inválida: " `mappend` t
+spanishFormMessage MsgInvalidTimeFormat = "Hora inválida, debe tener el 
formato HH:MM[:SS]"
+spanishFormMessage MsgInvalidDay = "Fecha inválida, debe tener el formato 
-MM-DD"
+spanishFormMessage (MsgInvalidUrl t) = "URL inválida: " `mappend` t
+spanishFormMessage (MsgInvalidEmail t) = "Dirección de correo electrónico 
inválida: " `mappend` t
+spanishFormMessage (MsgInvalidHour t) = "Hora inválida: " `mappend` t
+spanishFormMessage (MsgInvalidMinute t) = "Minuto inválido: " `mappend` t
+spanishFormMessage (MsgInvalidSecond t) = "Segundo inválido: " `mappend` t
+spanishFormMessage MsgCsrfWarning = "Como protección contra ataques CSRF, 
confirme su envío por favor."
+spanishFormMessage MsgValueRequired = "Se requiere un valor"
+spanishFormMessage (MsgInputNotFound t) = "Entrada no encontrada: " `mappend` t
+spanishFormMessage MsgSelectNone = ""
+spanishFormMessage (MsgInvalidBool t) = "Booleano inválido: " `mappend` t
+spanishFormMessage MsgBoolYes = "Sí"
+spanishFormMessage MsgBoolNo = "No"
+spanishFormMessage MsgDelete = "¿Eliminar?"
\ No newline at end of file
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/yesod-form-1.4.7.1/yesod-form.cabal 
new/yesod-form-1.4.8/yesod-form.cabal
--- old/yesod-form-1.4.7.1/yesod-form.cabal 2016-04-25 17:20:24.0 
+0200
+++ 

commit ghc-yesod-form for openSUSE:Factory

2016-07-20 Thread h_root
Hello community,

here is the log from the commit of package ghc-yesod-form for openSUSE:Factory 
checked in at 2016-07-20 09:22:15

Comparing /work/SRC/openSUSE:Factory/ghc-yesod-form (Old)
 and  /work/SRC/openSUSE:Factory/.ghc-yesod-form.new (New)


Package is "ghc-yesod-form"

Changes:

--- /work/SRC/openSUSE:Factory/ghc-yesod-form/ghc-yesod-form.changes
2016-05-03 09:37:00.0 +0200
+++ /work/SRC/openSUSE:Factory/.ghc-yesod-form.new/ghc-yesod-form.changes   
2016-07-20 09:22:19.0 +0200
@@ -1,0 +2,5 @@
+Sun Jul 10 17:31:59 UTC 2016 - psim...@suse.com
+
+- Update to version 1.4.7.1 revision 0 with cabal2obs.
+
+---



Other differences:
--
++ ghc-yesod-form.spec ++
--- /var/tmp/diff_new_pack.CC6Fpb/_old  2016-07-20 09:22:20.0 +0200
+++ /var/tmp/diff_new_pack.CC6Fpb/_new  2016-07-20 09:22:20.0 +0200
@@ -60,7 +60,10 @@
 
 %description
 API docs and the README are available at
-.
+. Third-party packages which you
+can find useful:  - richtext form fields (currntly it provides only
+Summernote support).
 
 %package devel
 Summary:Haskell %{pkg_name} library development files
@@ -78,11 +81,11 @@
 
 
 %build
-%{ghc_lib_build}
+%ghc_lib_build
 
 
 %install
-%{ghc_lib_install}
+%ghc_lib_install
 
 
 %check
@@ -92,12 +95,10 @@
 
 
 %post devel
-%{ghc_pkg_recache}
-
+%ghc_pkg_recache
 
 %postun devel
-%{ghc_pkg_recache}
-
+%ghc_pkg_recache
 
 %files -f %{name}.files
 %defattr(-,root,root,-)
@@ -105,6 +106,6 @@
 
 %files devel -f %{name}-devel.files
 %defattr(-,root,root,-)
-%doc README.md
+%doc ChangeLog.md README.md
 
 %changelog