From 055d98da1cec000b13fe9f7cff2e23acfadec318 Mon Sep 17 00:00:00 2001 From: Jens Petersen Date: Fri, 6 Aug 2021 13:23:40 +0800 Subject: [PATCH] revise .cabal --- ghc-transformers-base.spec | 2 ++ transformers-base-0.4.5.2.cabal | 57 +++++++++++++++++++++++++++++++++ 2 files changed, 59 insertions(+) create mode 100644 transformers-base-0.4.5.2.cabal diff --git a/ghc-transformers-base.spec b/ghc-transformers-base.spec index e98e2e5..4aa48a6 100644 --- a/ghc-transformers-base.spec +++ b/ghc-transformers-base.spec @@ -13,6 +13,7 @@ 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: @@ -68,6 +69,7 @@ This package provides the Haskell %{pkg_name} profiling library. %prep # Begin cabal-rpm setup: %setup -q -n %{pkgver} +cp -bp %{SOURCE1} %{pkg_name}.cabal # End cabal-rpm setup diff --git a/transformers-base-0.4.5.2.cabal b/transformers-base-0.4.5.2.cabal new file mode 100644 index 0000000..34f68bd --- /dev/null +++ b/transformers-base-0.4.5.2.cabal @@ -0,0 +1,57 @@ +Name: transformers-base +Version: 0.4.5.2 +x-revision: 1 +Category: Control +Stability: experimental +Synopsis: Lift computations from the bottom of a transformer stack +Description: + This package provides a straightforward port of @monadLib@'s BaseM + typeclass to @transformers@. + +Homepage: https://github.com/mvv/transformers-base +Bug-Reports: https://github.com/mvv/transformers-base/issues + +Author: + Mikhail Vorozhtsov , + Bas van Dijk +Maintainer: Mikhail Vorozhtsov +Copyright: + 2011 Mikhail Vorozhtsov , + Bas van Dijk +License: BSD3 +License-File: LICENSE + +Extra-Source-Files: + README.md + +Tested-With: GHC==7.0.4, GHC==7.4.2, GHC==7.6.3, GHC==7.8.4, + GHC==7.10.3, GHC==8.0.2, GHC==8.2.2, GHC==8.4.1 + +Cabal-Version: >= 1.8 +Build-Type: Simple + +Source-Repository head + Type: git + Location: https://github.com/mvv/transformers-base.git + +Flag OrphanInstances + Description: + Import orphan Applicative instances for lazy and strict ST if needed + Default: True + +Library + Build-Depends: + base >= 3 && < 5 && (< 4.4 || >= 4.5), + stm >= 2.3, + transformers >= 0.2 && <0.6, + transformers-compat >= 0.6.1 + Hs-Source-Dirs: src + GHC-Options: -Wall + if flag(OrphanInstances) + Build-Depends: + base-orphans >= 0.3 + CPP-Options: -DHS_TRANSFORMERS_BASE__ORPHANS=1 + else + CPP-Options: -DHS_TRANSFORMERS_BASE__ORPHANS=0 + Exposed-Modules: + Control.Monad.Base