diff --git a/ghc-uniplate.spec b/ghc-uniplate.spec index 1f9f850..c1e95eb 100644 --- a/ghc-uniplate.spec +++ b/ghc-uniplate.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: @@ -69,6 +70,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/uniplate-1.6.12.cabal b/uniplate-1.6.12.cabal new file mode 100644 index 0000000..750158f --- /dev/null +++ b/uniplate-1.6.12.cabal @@ -0,0 +1,95 @@ +cabal-version: >= 1.6 +build-type: Simple +name: uniplate +version: 1.6.12 +x-revision: 1 +author: Neil Mitchell +maintainer: Neil Mitchell +copyright: Neil Mitchell 2006-2013 +homepage: http://community.haskell.org/~ndm/uniplate/ +license: BSD3 +license-file: LICENSE +synopsis: Help writing simple, concise and fast generic operations. +category: Generics +description: + Uniplate is library for writing simple and concise generic operations. + Uniplate has similar goals to the original Scrap Your Boilerplate work, + but is substantially simpler and faster. The Uniplate manual is available at + . + . + To get started with Uniplate you should import one of the three following + modules: + . + * "Data.Generics.Uniplate.Data" - to quickly start writing generic functions. + Most users should start by importing this module. + . + * "Data.Generics.Uniplate.Direct" - a replacement for "Data.Generics.Uniplate.Data" + with substantially higher performance (around 5 times), but requires writing + instance declarations. + . + * "Data.Generics.Uniplate.Operations" - definitions of all the operations defined + by Uniplate. Both the above two modules re-export this module. + . + In addition, some users may want to make use of the following modules: + . + * "Data.Generics.Uniplate.Zipper" - a zipper built on top of Uniplate instances. + . + * "Data.Generics.SYB" - users transitioning from the Scrap Your Boilerplate library. + . + * "Data.Generics.Compos" - users transitioning from the Compos library. + . + * "Data.Generics.Uniplate.DataOnly" - users making use of both @Data@ and @Direct@ + to avoid getting instance conflicts. + +extra-source-files: + uniplate.htm + Data/Generics/Uniplate/Internal/DataInc.hs + Data/Generics/Uniplate/Internal/OperationsInc.hs + +source-repository head + type: git + location: https://github.com/ndmitchell/uniplate.git + +flag typeable_fingerprint +flag separate_syb + +library + if flag(typeable_fingerprint) + build-depends: + base >=4.4 && <5, containers, syb, + hashable >= 1.1.2.3, + unordered-containers >= 0.2.1 + else + if flag(separate_syb) + build-depends: base >=4 && <4.4, containers, syb + else + build-depends: base >=3 && <4, containers + + exposed-modules: + Data.Generics.Str + Data.Generics.Compos + Data.Generics.SYB + Data.Generics.Uniplate.Data + Data.Generics.Uniplate.Data.Instances + Data.Generics.Uniplate.DataOnly + Data.Generics.Uniplate.Direct + Data.Generics.Uniplate.Operations + Data.Generics.Uniplate.Typeable + Data.Generics.Uniplate.Zipper + + -- DEPRECATED + Data.Generics.Uniplate + Data.Generics.UniplateOn + Data.Generics.UniplateStr + Data.Generics.UniplateStrOn + Data.Generics.Biplate + Data.Generics.PlateDirect + Data.Generics.PlateTypeable + Data.Generics.PlateData + + other-modules: + Data.Generics.Uniplate.Internal.Data + Data.Generics.Uniplate.Internal.DataOnlyOperations + Data.Generics.Uniplate.Internal.Utils + + extensions: CPP