revise .cabal
This commit is contained in:
parent
04332169dd
commit
85af7d878e
|
@ -13,9 +13,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
|
||||
|
@ -73,6 +75,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
|
||||
|
||||
|
||||
|
|
|
@ -0,0 +1,92 @@
|
|||
name: profunctors
|
||||
category: Control, Categories
|
||||
version: 5.6.2
|
||||
x-revision: 1
|
||||
license: BSD3
|
||||
cabal-version: >= 1.10
|
||||
license-file: LICENSE
|
||||
author: Edward A. Kmett
|
||||
maintainer: Edward A. Kmett <ekmett@gmail.com>
|
||||
stability: experimental
|
||||
homepage: http://github.com/ekmett/profunctors/
|
||||
bug-reports: http://github.com/ekmett/profunctors/issues
|
||||
copyright: Copyright (C) 2011-2015 Edward A. Kmett
|
||||
synopsis: Profunctors
|
||||
description: Profunctors.
|
||||
tested-with: 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:
|
||||
.ghci
|
||||
.gitignore
|
||||
.hlint.yaml
|
||||
.vim.custom
|
||||
README.markdown
|
||||
CHANGELOG.markdown
|
||||
|
||||
source-repository head
|
||||
type: git
|
||||
location: git://github.com/ekmett/profunctors.git
|
||||
|
||||
library
|
||||
build-depends:
|
||||
base >= 4.7 && < 5,
|
||||
base-orphans >= 0.8.4 && < 0.9,
|
||||
bifunctors >= 5.5.9 && < 6,
|
||||
comonad >= 5.0.8 && < 6,
|
||||
contravariant >= 1.5.3 && < 2,
|
||||
distributive >= 0.5.2 && < 1,
|
||||
tagged >= 0.8.6.1 && < 1,
|
||||
transformers >= 0.3 && < 0.7
|
||||
|
||||
if !impl(ghc >= 8.0)
|
||||
build-depends: semigroups >= 0.18.5 && < 0.20
|
||||
|
||||
exposed-modules:
|
||||
Data.Profunctor
|
||||
Data.Profunctor.Adjunction
|
||||
Data.Profunctor.Cayley
|
||||
Data.Profunctor.Choice
|
||||
Data.Profunctor.Closed
|
||||
Data.Profunctor.Composition
|
||||
Data.Profunctor.Mapping
|
||||
Data.Profunctor.Monad
|
||||
Data.Profunctor.Ran
|
||||
Data.Profunctor.Rep
|
||||
Data.Profunctor.Sieve
|
||||
Data.Profunctor.Strong
|
||||
Data.Profunctor.Traversing
|
||||
Data.Profunctor.Types
|
||||
Data.Profunctor.Unsafe
|
||||
Data.Profunctor.Yoneda
|
||||
|
||||
ghc-options: -Wall -O2
|
||||
|
||||
if impl(ghc>=8.0)
|
||||
ghc-options: -Wno-trustworthy-safe
|
||||
|
||||
if impl(ghc >= 8.6)
|
||||
ghc-options: -Wno-star-is-type
|
||||
|
||||
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
|
||||
|
||||
hs-source-dirs: src
|
||||
|
||||
default-language: Haskell2010
|
||||
other-extensions:
|
||||
CPP
|
||||
GADTs
|
||||
FlexibleContexts
|
||||
FlexibleInstances
|
||||
InstanceSigs
|
||||
UndecidableInstances
|
||||
TypeFamilies
|
Loading…
Reference in New Issue