-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.yaml
81 lines (77 loc) · 2.12 KB
/
package.yaml
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
name: countable
version: "1.2"
author: Ashley Yakeley
copyright: (c) 2010-2022 Ashley Yakeley
license: BSD-3-Clause
license-file: LICENSE
maintainer: <ashley@semantic.org>
homepage: "https://github.com/AshleyYakeley/countable"
bug-reports: "https://github.com/AshleyYakeley/countable/issues"
category: Data
synopsis: "Countable, Searchable, Finite, Empty classes"
description: |
* @class Countable@, for countable types
.
* @class AtLeastOneCountable@, for countable types that have at least one value
.
* @class InfiniteCountable@, for infinite countable types
.
* @class Searchable@, for types that can be searched over. This turns out to include some infinite types, see <http://math.andrej.com/2007/09/28/seemingly-impossible-functional-programs/>.
.
* @class Finite@, for finite types
.
* @class Singular@, for singular (n = 1) types
.
* @class Empty@, for empty (n = 0) types
.
Some orphan instances (in their own modules):
.
* @(Searchable a,Eq b) => Eq (a -> b)@ / /
.
* @Finite t => Foldable ((->) t)@ / /
.
* @Finite a => Traversable ((->) a)@ / /
.
* @(Show a,Finite a,Show b) => Show (a -> b)@ / /
extra-source-files:
- changelog.md
default-extensions:
- EmptyCase
- ExistentialQuantification
ghc-options:
- -Wall
library:
source-dirs: src
dependencies:
- base >= 4.15 && < 5
exposed-modules:
- Data.Searchable
- Data.Countable
- Data.Singular
- Data.Empty
- Data.Function.Eq
- Data.Function.Foldable
- Data.Function.Traversable
- Data.Function.Show
other-modules:
- Data.Expression
tests:
test:
source-dirs: test
default-extensions:
GeneralizedNewtypeDeriving
ScopedTypeVariables
dependencies:
- base >= 4.15 && < 5
- countable
- bytestring
- silently
- tasty
- tasty-hunit
- tasty-golden
main: Count.hs
other-modules:
- Show
- TypeName
- Three
- Golden