2 Commits

3 changed files with 101 additions and 0 deletions

93
OneTuple.cabal Normal file
View File

@@ -0,0 +1,93 @@
cabal-version: 1.12
name: OneTuple
version: 0.4.2
x-revision: 1
synopsis: Singleton Tuple
category: Data
description:
This package is a compatibility package for a singleton data type
.
> data Solo a = MkSolo a
.
Note: it's not a @newtype@
.
@Solo@ is available in @base-4.16@ (GHC-9.2).
copyright: (c) John Dorsey 2008
license: BSD3
license-file: LICENSE
author: John Dorsey <haskell@colquitt.org>
maintainer:
Oleg Grenrus <oleg.grenrus@iki.fi>, John Dorsey <haskell@colquitt.org>
stability: experimental
build-type: Simple
tested-with:
GHC ==8.6.5
|| ==8.8.4
|| ==8.10.7
|| ==9.0.2
|| ==9.2.8
|| ==9.4.8
|| ==9.6.4
|| ==9.8.6
|| ==9.10.1
|| ==9.12.1
extra-source-files: Changelog.md
source-repository head
type: git
location: https://github.com/phadej/OneTuple.git
library
default-language: Haskell98
exposed-modules:
Data.Tuple.OneTuple
Data.Tuple.Solo
Data.Tuple.Solo.TH
hs-source-dirs: src
build-depends:
base >=4.12 && <4.22
, template-haskell
if impl(ghc >=9.0)
build-depends: ghc-prim
else
build-depends: hashable >=1.3.5.0 && <1.6
if !impl(ghc >=9.0)
build-depends: foldable1-classes-compat >=0.1 && <0.2
if !impl(ghc >=9.2)
build-depends: base-orphans >=0.8.6
test-suite instances
type: exitcode-stdio-1.0
default-language: Haskell98
hs-source-dirs: test
main-is: instances.hs
build-depends:
base
, hashable
, OneTuple
if !impl(ghc >=8.0)
build-depends:
semigroups
, transformers
, transformers-compat
if !impl(ghc >=9.6)
build-depends: foldable1-classes-compat >=0.1 && <0.2
test-suite th
type: exitcode-stdio-1.0
default-language: Haskell98
hs-source-dirs: test
main-is: th.hs
build-depends:
base
, OneTuple
, template-haskell

View File

@@ -1,3 +1,9 @@
-------------------------------------------------------------------
Fri Dec 20 18:16:59 UTC 2024 - Peter Simons <psimons@suse.com>
- Update OneTuple to version 0.4.2 revision 1.
Upstream has revised the Cabal build instructions on Hackage.
-------------------------------------------------------------------
Sun May 12 20:57:02 UTC 2024 - Peter Simons <psimons@suse.com>

View File

@@ -26,6 +26,7 @@ Summary: Singleton Tuple
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
@@ -75,6 +76,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