Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package ghc-yesod-form for openSUSE:Factory checked in at 2023-04-04 21:25:09 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/ghc-yesod-form (Old) and /work/SRC/openSUSE:Factory/.ghc-yesod-form.new.19717 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "ghc-yesod-form" Tue Apr 4 21:25:09 2023 rev:6 rq:1076143 version:1.7.4 Changes: -------- --- /work/SRC/openSUSE:Factory/ghc-yesod-form/ghc-yesod-form.changes 2022-10-13 15:44:59.763071839 +0200 +++ /work/SRC/openSUSE:Factory/.ghc-yesod-form.new.19717/ghc-yesod-form.changes 2023-04-04 21:25:22.514880689 +0200 @@ -1,0 +2,13 @@ +Thu Mar 30 17:09:12 UTC 2023 - Peter Simons <psim...@suse.com> + +- Updated spec file to conform with ghc-rpm-macros-2.5.2. + +------------------------------------------------------------------- +Thu Feb 9 06:24:43 UTC 2023 - Peter Simons <psim...@suse.com> + +- Update yesod-form to version 1.7.4. + ## 1.7.4 + + * Added a `Monad AForm` instance only when `transformers` >= 0.6 [#1795](https://github.com/yesodweb/yesod/pull/1795) + +------------------------------------------------------------------- Old: ---- yesod-form-1.7.3.tar.gz New: ---- yesod-form-1.7.4.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ ghc-yesod-form.spec ++++++ --- /var/tmp/diff_new_pack.qupv2R/_old 2023-04-04 21:25:23.166884390 +0200 +++ /var/tmp/diff_new_pack.qupv2R/_new 2023-04-04 21:25:23.182884481 +0200 @@ -1,7 +1,7 @@ # # spec file for package ghc-yesod-form # -# Copyright (c) 2022 SUSE LLC +# Copyright (c) 2023 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -17,9 +17,10 @@ %global pkg_name yesod-form +%global pkgver %{pkg_name}-%{version} %bcond_with tests Name: ghc-%{pkg_name} -Version: 1.7.3 +Version: 1.7.4 Release: 0 Summary: Form handling support for Yesod Web Framework License: MIT @@ -27,30 +28,54 @@ Source0: https://hackage.haskell.org/package/%{pkg_name}-%{version}/%{pkg_name}-%{version}.tar.gz BuildRequires: ghc-Cabal-devel BuildRequires: ghc-aeson-devel +BuildRequires: ghc-aeson-prof BuildRequires: ghc-attoparsec-devel +BuildRequires: ghc-attoparsec-prof +BuildRequires: ghc-base-devel +BuildRequires: ghc-base-prof BuildRequires: ghc-blaze-builder-devel +BuildRequires: ghc-blaze-builder-prof BuildRequires: ghc-blaze-html-devel +BuildRequires: ghc-blaze-html-prof BuildRequires: ghc-blaze-markup-devel +BuildRequires: ghc-blaze-markup-prof BuildRequires: ghc-byteable-devel +BuildRequires: ghc-byteable-prof BuildRequires: ghc-bytestring-devel +BuildRequires: ghc-bytestring-prof BuildRequires: ghc-containers-devel +BuildRequires: ghc-containers-prof BuildRequires: ghc-data-default-devel +BuildRequires: ghc-data-default-prof BuildRequires: ghc-email-validate-devel +BuildRequires: ghc-email-validate-prof BuildRequires: ghc-network-uri-devel +BuildRequires: ghc-network-uri-prof BuildRequires: ghc-persistent-devel +BuildRequires: ghc-persistent-prof BuildRequires: ghc-resourcet-devel +BuildRequires: ghc-resourcet-prof BuildRequires: ghc-rpm-macros BuildRequires: ghc-shakespeare-devel +BuildRequires: ghc-shakespeare-prof BuildRequires: ghc-text-devel +BuildRequires: ghc-text-prof BuildRequires: ghc-time-devel +BuildRequires: ghc-time-prof BuildRequires: ghc-transformers-devel +BuildRequires: ghc-transformers-prof BuildRequires: ghc-wai-devel +BuildRequires: ghc-wai-prof BuildRequires: ghc-xss-sanitize-devel +BuildRequires: ghc-xss-sanitize-prof BuildRequires: ghc-yesod-core-devel +BuildRequires: ghc-yesod-core-prof BuildRequires: ghc-yesod-persistent-devel +BuildRequires: ghc-yesod-persistent-prof ExcludeArch: %{ix86} %if %{with tests} BuildRequires: ghc-hspec-devel +BuildRequires: ghc-hspec-prof %endif %description @@ -70,6 +95,22 @@ %description devel This package provides the Haskell %{pkg_name} library development files. +%package -n ghc-%{pkg_name}-doc +Summary: Haskell %{pkg_name} library documentation +Requires: ghc-filesystem +BuildArch: noarch + +%description -n ghc-%{pkg_name}-doc +This package provides the Haskell %{pkg_name} library documentation. + +%package -n ghc-%{pkg_name}-prof +Summary: Haskell %{pkg_name} profiling library +Requires: ghc-%{pkg_name}-devel = %{version}-%{release} +Supplements: (ghc-%{pkg_name}-devel and ghc-prof) + +%description -n ghc-%{pkg_name}-prof +This package provides the Haskell %{pkg_name} profiling library. + %prep %autosetup -n %{pkg_name}-%{version} @@ -94,4 +135,9 @@ %files devel -f %{name}-devel.files %doc ChangeLog.md README.md +%files -n ghc-%{pkg_name}-doc -f ghc-%{pkg_name}-doc.files +%license LICENSE + +%files -n ghc-%{pkg_name}-prof -f ghc-%{pkg_name}-prof.files + %changelog ++++++ yesod-form-1.7.3.tar.gz -> yesod-form-1.7.4.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/yesod-form-1.7.3/ChangeLog.md new/yesod-form-1.7.4/ChangeLog.md --- old/yesod-form-1.7.3/ChangeLog.md 2022-10-06 05:36:30.000000000 +0200 +++ new/yesod-form-1.7.4/ChangeLog.md 2023-02-09 07:24:12.000000000 +0100 @@ -1,5 +1,9 @@ # ChangeLog for yesod-form +## 1.7.4 + +* Added a `Monad AForm` instance only when `transformers` >= 0.6 [#1795](https://github.com/yesodweb/yesod/pull/1795) + ## 1.7.3 * Fixed `radioField` according to Bootstrap 3 docs. [#1783](https://github.com/yesodweb/yesod/pull/1783) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/yesod-form-1.7.3/Yesod/Form/Types.hs new/yesod-form-1.7.4/Yesod/Form/Types.hs --- old/yesod-form-1.7.3/Yesod/Form/Types.hs 2022-09-08 13:21:18.000000000 +0200 +++ new/yesod-form-1.7.4/Yesod/Form/Types.hs 2023-02-09 07:24:12.000000000 +0100 @@ -166,6 +166,18 @@ (a, b, ints', c) <- f mr env ints (x, y, ints'', z) <- g mr env ints' return (a <*> x, b . y, ints'', c `mappend` z) + +#if MIN_VERSION_transformers(0,6,0) +instance Monad m => Monad (AForm m) where + (AForm f) >>= k = AForm $ \mr env ints -> do + (a, b, ints', c) <- f mr env ints + case a of + FormSuccess r -> do + (x, y, ints'', z) <- unAForm (k r) mr env ints' + return (x, b . y, ints'', c `mappend` z) + FormFailure err -> pure (FormFailure err, b, ints', c) + FormMissing -> pure (FormMissing, b, ints', c) +#endif instance (Monad m, Monoid a) => Monoid (AForm m a) where mempty = pure mempty mappend a b = mappend <$> a <*> b diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/yesod-form-1.7.3/yesod-form.cabal new/yesod-form-1.7.4/yesod-form.cabal --- old/yesod-form-1.7.3/yesod-form.cabal 2022-10-06 05:36:30.000000000 +0200 +++ new/yesod-form-1.7.4/yesod-form.cabal 2023-02-09 07:24:12.000000000 +0100 @@ -1,6 +1,6 @@ cabal-version: >= 1.10 name: yesod-form -version: 1.7.3 +version: 1.7.4 license: MIT license-file: LICENSE author: Michael Snoyman <mich...@snoyman.com>