From 1aaeaa397e1c5aaa4f14b2d7c48f9d1fcefca3861df3a9a60925c77483983e60 Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Tue, 19 Mar 2024 14:43:32 +0000 Subject: [PATCH] osc copypac from project:devel:languages:haskell:ghc-9.8.x package:ghc-tagged revision:2, using keep-link OBS-URL: https://build.opensuse.org/package/show/devel:languages:haskell/ghc-tagged?expand=0&rev=84 --- ghc-tagged.changes | 6 +++ ghc-tagged.spec | 4 +- tagged.cabal | 97 ++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 106 insertions(+), 1 deletion(-) create mode 100644 tagged.cabal diff --git a/ghc-tagged.changes b/ghc-tagged.changes index ae5e3b8..55aea49 100644 --- a/ghc-tagged.changes +++ b/ghc-tagged.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Sat Mar 16 15:19:10 UTC 2024 - Peter Simons + +- Update tagged to version 0.8.8 revision 1. + Upstream has revised the Cabal build instructions on Hackage. + ------------------------------------------------------------------- Tue Aug 8 10:32:28 UTC 2023 - Peter Simons diff --git a/ghc-tagged.spec b/ghc-tagged.spec index 4f9a05b..219b2b3 100644 --- a/ghc-tagged.spec +++ b/ghc-tagged.spec @@ -1,7 +1,7 @@ # # spec file for package ghc-tagged # -# Copyright (c) 2023 SUSE LLC +# Copyright (c) 2024 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -25,6 +25,7 @@ Summary: Haskell 98 phantom types to avoid unsafely passing dummy argumen License: BSD-3-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 @@ -68,6 +69,7 @@ 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 diff --git a/tagged.cabal b/tagged.cabal new file mode 100644 index 0000000..6a9d9e1 --- /dev/null +++ b/tagged.cabal @@ -0,0 +1,97 @@ +name: tagged +version: 0.8.8 +x-revision: 1 +license: BSD3 +license-file: LICENSE +author: Edward A. Kmett +maintainer: Edward A. Kmett +stability: experimental +category: Data, Phantom Types +synopsis: Haskell 98 phantom types to avoid unsafely passing dummy arguments +homepage: http://github.com/ekmett/tagged +bug-reports: http://github.com/ekmett/tagged/issues +copyright: 2009-2015 Edward A. Kmett +description: Haskell 98 phantom types to avoid unsafely passing dummy arguments. +build-type: Simple +cabal-version: >= 1.10 +extra-source-files: .hlint.yaml CHANGELOG.markdown README.markdown +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.4 + GHC == 8.10.7 + GHC == 9.0.2 + GHC == 9.2.8 + GHC == 9.4.8 + GHC == 9.6.4 + GHC == 9.8.2 + GHC == 9.10.0 + +source-repository head + type: git + location: https://github.com/ekmett/tagged.git + +flag deepseq + description: + You can disable the use of the `deepseq` package using `-f-deepseq`. + . + Disabing this is an unsupported configuration, but it may be useful for accelerating builds in sandboxes for expert users. + default: True + manual: True + +flag transformers + description: + You can disable the use of the `transformers` and `transformers-compat` packages using `-f-transformers`. + . + Disable this is an unsupported configuration, but it may be useful for accelerating builds in sandboxes for expert users. + default: True + manual: True + +library + default-language: Haskell98 + other-extensions: CPP + build-depends: base >= 2 && < 5 + ghc-options: -Wall + hs-source-dirs: src + exposed-modules: Data.Tagged + + 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 + + if !impl(hugs) + cpp-options: -DLANGUAGE_DeriveDataTypeable + other-extensions: DeriveDataTypeable + + if impl(ghc<7.7) + hs-source-dirs: old + exposed-modules: Data.Proxy + other-modules: Paths_tagged + + if impl(ghc>=7.2 && <7.5) + build-depends: ghc-prim + + if impl(ghc>=7.6) + exposed-modules: Data.Proxy.TH + build-depends: template-haskell >= 2.8 && < 2.23 + + if flag(deepseq) + build-depends: deepseq >= 1.1 && < 1.6 + + if flag(transformers) + build-depends: transformers >= 0.2 && < 0.7 + + -- Ensure Data.Functor.Classes is always available + if impl(ghc >= 7.10) || impl(ghcjs) + build-depends: transformers >= 0.4.2.0 + else + build-depends: transformers-compat >= 0.5 && < 1