-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpackage.yaml
110 lines (99 loc) · 2.7 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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
name: constraints-deriving
version: 1.1.1.2
github: "achirkin/constraints-deriving"
license: BSD3
author: "Artem Chirkin"
maintainer: "[email protected]"
copyright: "Copyright: (c) 2019 Artem Chirkin"
synopsis: Manipulating constraints and deriving class instances programmatically.
category: Constraints
description: The library provides a plugin to derive class instances programmatically.
Please see the README on GitHub at <https://github.com/achirkin/constraints-deriving#readme>
extra-source-files:
- README.md
- test/Spec/*.hs
- test/out/*.stderr
- test/out/*.stdout
flags:
constraints:
description:
Use vanilla constraints package as a dependency
instead of the manual minimalistic definitions copied from there.
default: false
manual: true
examples:
description:
Whether to build examples
default: false
manual: true
debug:
description:
Show debug trace info (used only for library development).
Note, if you want to see the debug output of the plugin in another project,
you may need to manually define a CPP option -DPLUGIN_DEBUG in that project.
default: false
manual: true
ghc-options: -Wall
dependencies:
- base >= 4.9 && < 5
custom-setup:
dependencies:
- base
- Cabal
library:
source-dirs: src
dependencies:
- ghc >= 8.0.1 && < 9.1
exposed-modules:
- Data.Constraint.Bare
- Data.Constraint.Deriving
- Data.Constraint.Deriving.ClassDict
- Data.Constraint.Deriving.DeriveAll
- Data.Constraint.Deriving.ToInstance
other-modules:
- Data.Constraint.Deriving.Compat
- Data.Constraint.Deriving.CorePluginM
- Data.Constraint.Deriving.Import
- Data.Constraint.Deriving.OverlapMode
when:
- condition: flag(debug)
cpp-options: -DPLUGIN_DEBUG
- condition: flag(constraints)
then:
dependencies:
- constraints >= 0.6
else:
exposed-modules:
- Data.Constraint
- Data.Constraint.Unsafe
source-dirs: src-constraints
tests:
functional-tests:
main: Spec.hs
source-dirs: test
other-modules: []
dependencies:
- constraints-deriving
- filepath
- ghc
- ghc-paths
- path >= 0.5.13
- path-io
- bytestring
executables:
deriving-example:
when:
- condition: flag(examples)
then:
ghc-options:
- -dcore-lint
else:
buildable: false
main: Main.hs
source-dirs: example
other-modules:
- Lib.BackendFamily
- Lib.VecBackend
- Lib.Vector
dependencies:
- constraints-deriving