diff --git a/assoc-1.0.2.cabal b/assoc-1.0.2.cabal new file mode 100644 index 0000000..4cb4376 --- /dev/null +++ b/assoc-1.0.2.cabal @@ -0,0 +1,51 @@ +cabal-version: 1.12 +name: assoc +version: 1.0.2 +x-revision: 1 +license: BSD3 +license-file: LICENSE +synopsis: swap and assoc: Symmetric and Semigroupy Bifunctors +category: Data +description: + Provides generalisations of + @swap :: (a,b) -> (b,a)@ and + @assoc :: ((a,b),c) -> (a,(b,c))@ + to + @Bifunctor@s supporting similar operations (e.g. @Either@, @These@). + +author: Oleg Grenrus +maintainer: Oleg Grenrus +build-type: Simple +extra-source-files: CHANGELOG.md +tested-with: + GHC ==7.0.4 + || ==7.2.2 + || ==7.4.2 + || ==7.6.3 + || ==7.8.4 + || ==7.10.3 + || ==8.0.2 + || ==8.2.2 + || ==8.4.4 + || ==8.6.5 + || ==8.8.4 + || ==8.10.3 + , GHCJS ==8.4 + +source-repository head + type: git + location: https://github.com/phadej/assoc.git + +library + default-language: Haskell2010 + hs-source-dirs: src + build-depends: + base >=4.3 && <4.16 + , bifunctors >=5.5.5 && <5.6 + , tagged >=0.8.6 && <0.9 + + exposed-modules: + Data.Bifunctor.Assoc + Data.Bifunctor.Swap + + other-extensions: TypeFamilies diff --git a/ghc-assoc.spec b/ghc-assoc.spec index 7f0a7c0..8efa727 100644 --- a/ghc-assoc.spec +++ b/ghc-assoc.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: @@ -67,6 +68,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