From d3392a2972b879700eadcd882d2aa769e4eb7550c287d24f172391d3ce4c6636 Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Tue, 7 Aug 2018 11:06:20 +0000 Subject: [PATCH] osc copypac from project:devel:languages:haskell:ghc-8.4.x package:ghc-split revision:7, using keep-link OBS-URL: https://build.opensuse.org/package/show/devel:languages:haskell/ghc-split?expand=0&rev=42 --- ghc-split.changes | 5 ++++ ghc-split.spec | 2 ++ split.cabal | 58 +++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 65 insertions(+) create mode 100644 split.cabal diff --git a/ghc-split.changes b/ghc-split.changes index 7d1b076..1236cab 100644 --- a/ghc-split.changes +++ b/ghc-split.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue Aug 7 07:10:52 UTC 2018 - psimons@suse.com + +- Update Cabal build information to GHC 8.6.x. + ------------------------------------------------------------------- Wed Jul 18 14:26:41 UTC 2018 - psimons@suse.com diff --git a/ghc-split.spec b/ghc-split.spec index 5fefc0c..4ed332c 100644 --- a/ghc-split.spec +++ b/ghc-split.spec @@ -26,6 +26,7 @@ License: BSD-3-Clause Group: Development/Libraries/Haskell 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-rpm-macros %if %{with tests} @@ -63,6 +64,7 @@ This package provides the Haskell %{pkg_name} library development files. %prep %setup -q -n %{pkg_name}-%{version} +cp -p %{SOURCE1} %{pkg_name}.cabal %build %ghc_lib_build diff --git a/split.cabal b/split.cabal new file mode 100644 index 0000000..1039cdf --- /dev/null +++ b/split.cabal @@ -0,0 +1,58 @@ +Name: split +Version: 0.2.3.3 +x-revision: 1 +Stability: stable + +Description: A collection of various methods for splitting + lists into parts, akin to the \"split\" function + found in several mainstream languages. Here is + its tale: + . + Once upon a time the standard "Data.List" module + held no function for splitting a list into parts + according to a delimiter. Many a brave + lambda-knight strove to add such a function, but + their striving was in vain, for Lo, the Supreme + Council fell to bickering amongst themselves what + was to be the essential nature of the One True + Function which could cleave a list in twain (or + thrain, or any required number of parts). + . + And thus came to pass the split package, + comprising divers functions for splitting a list + asunder, each according to its nature. And the + Supreme Council had no longer any grounds for + argument, for the favored method of each was + contained therein. + . + To get started, see the "Data.List.Split" module. +Synopsis: Combinator library for splitting lists. +License: BSD3 +License-file: LICENSE +Copyright: (c) Brent Yorgey, Louis Wasserman 2008-2012 +Extra-source-files: README, test/Properties.hs, CHANGES +Author: Brent Yorgey +Maintainer: byorgey@gmail.com +Category: List +Build-type: Simple +Cabal-Version: >= 1.10 +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.1 +Bug-reports: https://github.com/byorgey/split/issues + +Test-suite split-tests + type: exitcode-stdio-1.0 + main-is: Properties.hs + build-depends: base, QuickCheck >= 2.4, split + default-language: Haskell2010 + Hs-source-dirs: test + +Source-repository head + type: git + location: http://github.com/byorgey/split.git + +Library + ghc-options: -Wall + build-depends: base <4.13 + exposed-modules: Data.List.Split, Data.List.Split.Internals + default-language: Haskell2010 + Hs-source-dirs: src