File OneTuple.cabal of Package ghc-OneTuple.32273
cabal-version: 1.12
name: OneTuple
version: 0.4.1.1
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 ==7.0.4
|| ==7.2.2
|| ==7.4.2
|| ==7.6.3
|| ==7.8.4
|| ==7.10.3
|| ==8.0.2
|| ==8.2.2
|| ==8.4.4
|| ==8.6.5
|| ==8.8.4
|| ==8.10.7
|| ==9.0.2
|| ==9.2.8
|| ==9.4.7
|| ==9.6.3
|| ==9.8.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.3 && <4.20
, template-haskell
if impl(ghc >=9.0)
build-depends: ghc-prim
else
if impl(ghc >=7.4)
build-depends: hashable >=1.3.5.0 && <1.5
else
build-depends: hashable >=1.2.5.0 && <1.3
-- generics
if !impl(ghc >=7.6)
build-depends: ghc-prim
if !impl(ghc >=8.0)
build-depends:
semigroups >=0.18.4 && <0.21
, transformers >=0.3 && <0.7
-- Ensure Data.Functor.Classes is always available
if impl(ghc >=7.10)
build-depends: transformers >=0.4.2.0
else
build-depends: transformers-compat >=0.5.1.0 && <0.8
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