File: OneTuple.cabal

package info (click to toggle)
haskell-onetuple 0.4.2-2
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 92 kB
  • sloc: haskell: 256; makefile: 2
file content (93 lines) | stat: -rw-r--r-- 2,013 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
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