diff options
author | CoprDistGit <infra@openeuler.org> | 2023-10-30 07:48:07 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2023-10-30 07:48:07 +0000 |
commit | 4553e05745ea9b13f33105e79efad9f639504ad3 (patch) | |
tree | 13d0a8fd13bdb65a79c1a6fe353a726c8bbea384 | |
parent | 9711ed13ab0b26268a06b771e5e05fce735e5852 (diff) |
automatic import of ghc-comonadopeneuler23.09
-rw-r--r-- | .gitignore | 1 | ||||
-rwxr-xr-x | comonad.cabal | 125 | ||||
-rw-r--r-- | ghc-comonad.spec | 87 | ||||
-rw-r--r-- | sources | 1 |
4 files changed, 214 insertions, 0 deletions
@@ -0,0 +1 @@ +/comonad-5.0.8.tar.gz diff --git a/comonad.cabal b/comonad.cabal new file mode 100755 index 0000000..ee94f59 --- /dev/null +++ b/comonad.cabal @@ -0,0 +1,125 @@ +name: comonad
+category: Control, Comonads
+version: 5.0.8
+x-revision: 1
+license: BSD3
+cabal-version: >= 1.10
+license-file: LICENSE
+author: Edward A. Kmett
+maintainer: Edward A. Kmett <ekmett@gmail.com>
+stability: provisional
+homepage: http://github.com/ekmett/comonad/
+bug-reports: http://github.com/ekmett/comonad/issues
+copyright: Copyright (C) 2008-2014 Edward A. Kmett,
+ Copyright (C) 2004-2008 Dave Menendez
+synopsis: Comonads
+description: Comonads.
+build-type: Simple
+tested-with: GHC == 7.0.4
+ , GHC == 7.2.2
+ , 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.4
+ , GHC == 8.6.5
+ , GHC == 8.8.3
+ , GHC == 8.10.1
+extra-source-files:
+ .gitignore
+ .hlint.yaml
+ .vim.custom
+ coq/Store.v
+ README.markdown
+ CHANGELOG.markdown
+ examples/History.hs
+
+flag containers
+ description:
+ You can disable the use of the `containers` package using `-f-containers`.
+ .
+ Disabing this is an unsupported configuration, but it may be useful for accelerating builds in sandboxes for expert users.
+ default: True
+ manual: True
+
+flag distributive
+ description:
+ You can disable the use of the `distributive` package using `-f-distributive`.
+ .
+ Disabling this is an unsupported configuration, but it may be useful for accelerating builds in sandboxes for expert users.
+ .
+ If disabled we will not supply instances of `Distributive`
+ .
+ default: True
+ manual: True
+
+flag indexed-traversable
+ description:
+ You can disable the use of the `indexed-traversable` package using `-f-indexed-traversable`.
+ .
+ Disabling this is an unsupported configuration, but it may be useful for accelerating builds in sandboxes for expert users.
+ .
+ If disabled we will not supply instances of `FunctorWithIndex`
+ .
+ default: True
+ manual: True
+
+
+source-repository head
+ type: git
+ location: git://github.com/ekmett/comonad.git
+
+library
+ hs-source-dirs: src
+ default-language: Haskell2010
+ ghc-options: -Wall
+
+ build-depends:
+ base >= 4 && < 5,
+ tagged >= 0.8.6.1 && < 1,
+ transformers >= 0.3 && < 0.7,
+ transformers-compat >= 0.5 && < 1
+
+ if !impl(ghc >= 8.0)
+ build-depends: semigroups >= 0.18.5 && < 1
+
+ if flag(containers)
+ build-depends: containers >= 0.3 && < 0.7
+
+ if flag(distributive)
+ build-depends: distributive >= 0.5.2 && < 1
+
+ if flag(indexed-traversable)
+ build-depends: indexed-traversable >= 0.1.1 && < 0.2
+
+ if impl(ghc >= 9.0)
+ -- these flags may abort compilation with GHC-8.10
+ -- https://gitlab.haskell.org/ghc/ghc/-/merge_requests/3295
+ ghc-options: -Winferred-safe-imports -Wmissing-safe-haskell-mode
+
+ exposed-modules:
+ Control.Comonad
+ Control.Comonad.Env
+ Control.Comonad.Env.Class
+ Control.Comonad.Hoist.Class
+ Control.Comonad.Identity
+ Control.Comonad.Store
+ Control.Comonad.Store.Class
+ Control.Comonad.Traced
+ Control.Comonad.Traced.Class
+ Control.Comonad.Trans.Class
+ Control.Comonad.Trans.Env
+ Control.Comonad.Trans.Identity
+ Control.Comonad.Trans.Store
+ Control.Comonad.Trans.Traced
+ Data.Functor.Composition
+
+ other-extensions:
+ CPP
+ RankNTypes
+ MultiParamTypeClasses
+ FunctionalDependencies
+ FlexibleInstances
+ UndecidableInstances
diff --git a/ghc-comonad.spec b/ghc-comonad.spec new file mode 100644 index 0000000..86afe8e --- /dev/null +++ b/ghc-comonad.spec @@ -0,0 +1,87 @@ +%global pkg_name comonad +%global pkgver %{pkg_name}-%{version} + +Name: ghc-%{pkg_name} +Version: 5.0.8 +Release: 1 +Summary: Comonads +License: BSD-2-Clause +URL: https://hackage.haskell.org/package/%{pkg_name} +Source0: https://hackage.haskell.org/package/%{pkg_name}-%{version}/%{pkg_name}-%{version}.tar.gz +Source1: https://hackage.haskell.org/package/%{pkg_name}-%{version}/revision/1.cabal#/%{pkg_name}.cabal +BuildRequires: ghc-Cabal-devel +BuildRequires: ghc-base-devel +BuildRequires: ghc-base-prof +BuildRequires: ghc-containers-devel +BuildRequires: ghc-containers-prof +BuildRequires: ghc-distributive-devel +BuildRequires: ghc-distributive-prof +BuildRequires: ghc-indexed-traversable-devel +BuildRequires: ghc-indexed-traversable-prof +BuildRequires: ghc-rpm-macros +BuildRequires: ghc-tagged-devel +BuildRequires: ghc-tagged-prof +BuildRequires: ghc-transformers-compat-devel +BuildRequires: ghc-transformers-compat-prof +BuildRequires: ghc-transformers-devel +BuildRequires: ghc-transformers-prof +ExcludeArch: %{ix86} + +%description +Comonads. + +%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. + +%package -n ghc-%{pkg_name}-help +Summary: Haskell %{pkg_name} library documentation +BuildArch: noarch + +%description -n ghc-%{pkg_name}-help +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} +cp -p %{SOURCE1} %{pkg_name}.cabal + +%build +%ghc_lib_build + +%install +%ghc_lib_install + +%post devel +%ghc_pkg_recache + +%postun devel +%ghc_pkg_recache + +%files -f %{name}.files +%license LICENSE + +%files devel -f %{name}-devel.files +%doc CHANGELOG.markdown README.markdown examples + +%files -n ghc-%{pkg_name}-help -f ghc-%{pkg_name}-help.files +%license LICENSE + +%files -n ghc-%{pkg_name}-prof -f ghc-%{pkg_name}-prof.files + +%changelog +* Thu Sep 28 2023 Lin Runze <lrzlin@163.com> 5.0.8-1 +- Initial packaging (Version 5.0.8) @@ -0,0 +1 @@ +efeead553b0b007a5d256f3a054953dd comonad-5.0.8.tar.gz |