From cff1cdaaf6476f7000b5e2ad9094fe8eb3800dad Mon Sep 17 00:00:00 2001 From: Jens Petersen Date: Wed, 4 Aug 2021 22:29:12 +0800 Subject: [PATCH] revise .cabal --- ghc-th-lift.spec | 3 +++ th-lift-0.8.2.cabal | 65 +++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 68 insertions(+) create mode 100644 th-lift-0.8.2.cabal diff --git a/ghc-th-lift.spec b/ghc-th-lift.spec index 1d56fa9..2d07999 100644 --- a/ghc-th-lift.spec +++ b/ghc-th-lift.spec @@ -15,9 +15,11 @@ 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: +BuildRequires: dos2unix BuildRequires: ghc-Cabal-devel BuildRequires: ghc-rpm-macros BuildRequires: ghc-base-prof @@ -82,6 +84,7 @@ This package provides the Haskell %{pkg_name} profiling library. %prep # Begin cabal-rpm setup: %setup -q -n %{pkgver} +dos2unix -k -n %{SOURCE1} %{pkg_name}.cabal # End cabal-rpm setup diff --git a/th-lift-0.8.2.cabal b/th-lift-0.8.2.cabal new file mode 100644 index 0000000..0a3762a --- /dev/null +++ b/th-lift-0.8.2.cabal @@ -0,0 +1,65 @@ +Name: th-lift +Version: 0.8.2 +x-revision: 1 +Cabal-Version: 1.12 +License: BSD3 +License-Files: COPYING, BSD3, GPL-2 +Copyright: © 2006 Ian Lynagh, © 2010-2019 Mathieu Boespflug, © 2019 Ryan Scott +Author: Ian Lynagh +Maintainer: Ryan Scott +Homepage: http://github.com/RyanGlScott/th-lift +Synopsis: Derive Template Haskell's Lift class for datatypes. +Description: + Derive Template Haskell's @Lift@ class for datatypes using @TemplateHaskell@. + The functionality in this package has largely been subsumed by the + @DeriveLift@ language extension, which is available in GHC 8.0 and later + versions. This package can still be useful as a uniform way to derive + @Lift@ instances that is backwards-compatible with older GHCs. + . + The following libraries are related: + . + * The package + provides instances for @template-haskell@ syntax types. + . + * The + package provides @Lift@ instances for types in @base@, @text@, + @bytestring@, @vector@, etc. Some of these instances are only provided for + old versions of their respective libraries, as the same @Lift@ instances + are also present upstream on newer versions. +Category: Language +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 +build-type: Simple +Extra-source-files: CHANGELOG.md + +source-repository head + type: git + location: https://github.com/RyanGlScott/th-lift + +Library + Default-Language: Haskell2010 + Exposed-modules: Language.Haskell.TH.Lift + Language.Haskell.TH.Lift.Internal + Other-Extensions: CPP, MagicHash, TypeSynonymInstances, FlexibleInstances + if impl(ghc >= 8.0) + Other-Extensions: TemplateHaskellQuotes + else + Other-Extensions: TemplateHaskell + Hs-Source-Dirs: src + Build-Depends: base >= 4.3 && < 5, + ghc-prim, + th-abstraction >= 0.2.3 && < 0.5, + template-haskell >= 2.5 && < 2.19 + ghc-options: -Wall + +Test-Suite test + Default-Language: Haskell2010 + Type: exitcode-stdio-1.0 + Main-Is: Test.hs + Hs-Source-Dirs: t + other-modules: Foo + ghc-options: -Wall + Build-Depends: base, + ghc-prim, + th-lift, + template-haskell +