Accepting request 1218553 from devel:languages:haskell

version update

OBS-URL: https://build.opensuse.org/request/show/1218553
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/ghc-extra?expand=0&rev=37
This commit is contained in:
Ana Guerrero 2024-10-28 14:18:31 +00:00 committed by Git OBS Bridge
commit 69fcad8043
3 changed files with 95 additions and 0 deletions

87
extra.cabal Normal file
View File

@ -0,0 +1,87 @@
cabal-version: 1.18
build-type: Simple
name: extra
version: 1.7.16
x-revision: 1
license: BSD3
license-file: LICENSE
category: Development
author: Neil Mitchell <ndmitchell@gmail.com>
maintainer: Neil Mitchell <ndmitchell@gmail.com>
copyright: Neil Mitchell 2014-2024
synopsis: Extra functions I use.
description:
A library of extra functions for the standard Haskell libraries. Most functions are simple additions, filling out missing functionality. A few functions are available in later versions of GHC, but this package makes them available back to GHC 7.2.
.
The module "Extra" documents all functions provided by this library. Modules such as "Data.List.Extra" provide extra functions over "Data.List" and also reexport "Data.List". Users are recommended to replace "Data.List" imports with "Data.List.Extra" if they need the extra functionality.
homepage: https://github.com/ndmitchell/extra#readme
bug-reports: https://github.com/ndmitchell/extra/issues
tested-with: GHC==9.8, GHC==9.6, GHC==9.4, GHC==9.2, GHC==9.0, GHC==8.10, GHC==8.8
extra-doc-files:
CHANGES.txt
README.md
extra-source-files:
Generate.hs
source-repository head
type: git
location: https://github.com/ndmitchell/extra.git
library
default-language: Haskell2010
hs-source-dirs: src
build-depends:
base >= 4.9 && < 4.21,
directory,
filepath,
process,
clock >= 0.7,
time
if !os(windows)
build-depends: unix
other-modules:
Partial
exposed-modules:
Extra
Control.Concurrent.Extra
Control.Exception.Extra
Control.Monad.Extra
Data.Foldable.Extra
Data.Either.Extra
Data.IORef.Extra
Data.List.Extra
Data.List.NonEmpty.Extra
Data.Monoid.Extra
Data.Tuple.Extra
Data.Typeable.Extra
Data.Version.Extra
Numeric.Extra
System.Directory.Extra
System.Environment.Extra
System.Info.Extra
System.IO.Extra
System.Process.Extra
System.Time.Extra
Text.Read.Extra
test-suite extra-test
type: exitcode-stdio-1.0
default-language: Haskell2010
build-depends:
base == 4.*,
directory,
filepath,
extra,
QuickCheck >= 2.10,
quickcheck-instances >= 0.3.17
if !os(windows)
build-depends: unix
hs-source-dirs: test
ghc-options: -main-is Test -threaded "-with-rtsopts=-N4 -K1K"
main-is: Test.hs
other-modules:
TestCustom
TestGen
TestUtil

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Tue Oct 22 22:59:37 UTC 2024 - Peter Simons <psimons@suse.com>
- Update extra to version 1.7.16 revision 1.
Upstream has revised the Cabal build instructions on Hackage.
-------------------------------------------------------------------
Sat May 11 15:55:39 UTC 2024 - Peter Simons <psimons@suse.com>

View File

@ -26,6 +26,7 @@ Summary: Extra functions I use
License: BSD-3-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-base-devel
BuildRequires: ghc-base-prof
@ -89,6 +90,7 @@ This package provides the Haskell %{pkg_name} profiling library.
%prep
%autosetup -n %{pkg_name}-%{version}
cp -p %{SOURCE1} %{pkg_name}.cabal
%build
%ghc_lib_build