From b0c07edb942d47b0bc3acebaa95e6e74cc9c7634 Mon Sep 17 00:00:00 2001 From: Jens Petersen Date: Tue, 7 Jun 2022 10:17:25 +0800 Subject: [PATCH] update to 0.4.6 --- .gitignore | 1 + STMonadTrans-0.4.6.cabal | 87 ++++++++++++++++++++++++++++++++++++++++ ghc-STMonadTrans.spec | 12 ++++-- sources | 2 +- 4 files changed, 98 insertions(+), 4 deletions(-) create mode 100644 STMonadTrans-0.4.6.cabal diff --git a/.gitignore b/.gitignore index 9fb1d24..fed13d7 100644 --- a/.gitignore +++ b/.gitignore @@ -3,3 +3,4 @@ /STMonadTrans-0.4.3.tar.gz /STMonadTrans-0.4.4.tar.gz /STMonadTrans-0.4.5.tar.gz +/STMonadTrans-0.4.6.tar.gz diff --git a/STMonadTrans-0.4.6.cabal b/STMonadTrans-0.4.6.cabal new file mode 100644 index 0000000..f1037ef --- /dev/null +++ b/STMonadTrans-0.4.6.cabal @@ -0,0 +1,87 @@ +name: STMonadTrans +version: 0.4.6 +x-revision: 1 +cabal-version: >= 1.10 +license: BSD3 +license-file: LICENSE +author: Josef Svenningsson +maintainer: josef.svenningsson@gmail.com, Andreas Abel +homepage: https://github.com/josefs/STMonadTrans +bug-reports: https://github.com/josefs/STMonadTrans/issues +category: Monads +build-type: Simple +synopsis: A monad transformer version of the ST monad +description: + A monad transformer version of the ST monad. + . + Warning! This monad transformer should not be used with monads that + can contain multiple answers, like the list monad. The reason is that + the state token will be duplicated across the different answers and + this causes Bad Things to happen (such as loss of referential + transparency). Safe monads include the monads State, Reader, Writer, + Maybe and combinations of their corresponding monad transformers. + +Tested-With: GHC == 7.6.3 + , GHC == 7.8.4 + , GHC == 7.10.3 + , GHC == 8.0.2 + , GHC == 8.2.2 + , GHC == 8.4.4 + , GHC == 8.6.5 + , GHC == 8.8.4 + , GHC == 8.10.7 + , GHC == 9.0.1 + , GHC == 9.2.1 + +extra-source-files: + README.md + changelog.md + +source-repository head + type: git + location: https://github.com/josefs/STMonadTrans + +library + default-language: Haskell2010 + build-depends: base >= 4.6 && < 5 + , mtl >= 1.1 + , array + + -- MonadFail for GHC <= 7 + if impl(ghc < 8.0) + build-depends: fail + + exposed-modules: + Control.Monad.ST.Trans + Control.Monad.ST.Trans.Internal + + default-extensions: + CPP + BangPatterns + MagicHash + UnboxedTuples + Rank2Types + FlexibleInstances + MultiParamTypeClasses + UndecidableInstances + + ghc-options: + -Wall + -fwarn-tabs + + if impl(ghc >= 8.0) + ghc-options: + -Wcompat + +test-suite test + default-language: Haskell2010 + type: exitcode-stdio-1.0 + hs-source-dirs: test + main-is: Main.hs + build-depends: base >= 4 && < 5 + , tasty >= 0.11.0.4 && < 1.5 + , tasty-quickcheck >= 0.8.4 && < 0.11 + , tasty-hunit >= 0.9.2 && < 0.11 + , transformers >= 0.2 && < 0.7 + , STMonadTrans + , array diff --git a/ghc-STMonadTrans.spec b/ghc-STMonadTrans.spec index 622e8c9..e88fd78 100644 --- a/ghc-STMonadTrans.spec +++ b/ghc-STMonadTrans.spec @@ -7,17 +7,19 @@ %bcond_without tests Name: ghc-%{pkg_name} -Version: 0.4.5 -Release: 2%{?dist} +Version: 0.4.6 +Release: 1%{?dist} Summary: A monad transformer version of the ST monad License: BSD Url: https://hackage.haskell.org/package/%{pkg_name} # Begin cabal-rpm sources: Source0: https://hackage.haskell.org/package/%{pkgver}/%{pkgver}.tar.gz +Source1: https://hackage.haskell.org/package/%{pkgver}/%{pkg_name}.cabal#/%{pkgver}.cabal # End cabal-rpm sources # Begin cabal-rpm deps: +BuildRequires: dos2unix BuildRequires: ghc-Cabal-devel BuildRequires: ghc-rpm-macros BuildRequires: ghc-array-prof @@ -78,6 +80,7 @@ This package provides the Haskell %{pkg_name} profiling library. %prep # Begin cabal-rpm setup: %setup -q -n %{pkgver} +dos2unix -k -n %{SOURCE1} %{pkg_name}.cabal # End cabal-rpm setup @@ -106,7 +109,7 @@ This package provides the Haskell %{pkg_name} profiling library. %files devel -f %{name}-devel.files -%doc changelog.md +%doc README.md changelog.md %if %{with haddock} @@ -121,6 +124,9 @@ This package provides the Haskell %{pkg_name} profiling library. %changelog +* Tue Jun 07 2022 Jens Petersen - 0.4.6-1 +- https://hackage.haskell.org/package/STMonadTrans-0.4.6/changelog + * Thu Jan 20 2022 Fedora Release Engineering - 0.4.5-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild diff --git a/sources b/sources index bd10a94..9d128e4 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (STMonadTrans-0.4.5.tar.gz) = 003d94d581d109c9a173acb7925f69d717086576aaafa18253709d041639d1d50db8bf2f9565a671388712dcbc82aedbedc7715d507931acc523fd13b8af46ee +SHA512 (STMonadTrans-0.4.6.tar.gz) = 51271beb580b44029fad41bb03ed3585acf803af6c60dd410a00196505f872cc38974dbc078a0a1f8077dbd69354906ce46f43cab9e82f6610fb668e15019080