diff --git a/ghc-invariant.changes b/ghc-invariant.changes index 54b7871..a525ea8 100644 --- a/ghc-invariant.changes +++ b/ghc-invariant.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Sat Jul 23 18:37:39 UTC 2022 - Peter Simons + +- Update invariant to version 0.6 revision 1. + Upstream has revised the Cabal build instructions on Hackage. + ------------------------------------------------------------------- Sun Jul 3 10:17:11 UTC 2022 - Peter Simons diff --git a/ghc-invariant.spec b/ghc-invariant.spec index 94a203a..b31b813 100644 --- a/ghc-invariant.spec +++ b/ghc-invariant.spec @@ -25,6 +25,7 @@ Summary: Haskell98 invariant functors 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-StateVar-devel BuildRequires: ghc-array-devel @@ -66,6 +67,7 @@ This package provides the Haskell %{pkg_name} library development files. %prep %autosetup -n %{pkg_name}-%{version} +cp -p %{SOURCE1} %{pkg_name}.cabal %build %ghc_lib_build diff --git a/invariant.cabal b/invariant.cabal new file mode 100644 index 0000000..d6faf73 --- /dev/null +++ b/invariant.cabal @@ -0,0 +1,83 @@ +name: invariant +version: 0.6 +x-revision: 1 +synopsis: Haskell98 invariant functors +description: Haskell98 invariant functors (also known as exponential functors). + . + For more information, see Edward Kmett's article \"Rotten Bananas\": + . + +category: Control, Data +license: BSD2 +license-file: LICENSE +homepage: https://github.com/nfrisby/invariant-functors +bug-reports: https://github.com/nfrisby/invariant-functors/issues +author: Nicolas Frisby +maintainer: Nicolas Frisby , + Ryan Scott +build-type: Simple +cabal-version: >= 1.10 +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.1 + , GHC == 9.2.1 +extra-source-files: CHANGELOG.md, README.md + +source-repository head + type: git + location: https://github.com/nfrisby/invariant-functors + +library + exposed-modules: Data.Functor.Invariant + , Data.Functor.Invariant.TH + other-modules: Data.Functor.Invariant.TH.Internal + , Paths_invariant + hs-source-dirs: src + default-language: Haskell2010 + build-depends: array >= 0.3 && < 0.6 + , base >= 4 && < 5 + , bifunctors >= 5.2 && < 6 + , comonad >= 5 && < 6 + , containers >= 0.1 && < 0.7 + , contravariant >= 0.5 && < 2 + , ghc-prim + , profunctors >= 5.2.1 && < 6 + , StateVar >= 1.1 && < 2 + , stm >= 2.2 && < 3 + , tagged >= 0.7.3 && < 1 + , template-haskell >= 2.4 && < 2.20 + , th-abstraction >= 0.4 && < 0.5 + , transformers >= 0.2 && < 0.7 + , transformers-compat >= 0.3 && < 1 + , unordered-containers >= 0.2.4 && < 0.3 + ghc-options: -Wall + + if !impl(ghc >= 8.0) + build-depends: semigroups >= 0.16.2 && < 1 + +test-suite spec + type: exitcode-stdio-1.0 + hs-source-dirs: test + default-language: Haskell2010 + main-is: Spec.hs + other-modules: InvariantSpec + THSpec + build-depends: base >= 4 && < 5 + , hspec >= 1.8 + , invariant + , QuickCheck >= 2.11 && < 3 + , template-haskell >= 2.4 && < 2.20 + build-tool-depends: hspec-discover:hspec-discover + ghc-options: -Wall + if impl(ghc >= 8.6) + ghc-options: -Wno-star-is-type