1
- cabal-version : 3.4
2
- name : cuddle
3
- version : 0.5.0.0
4
- synopsis : CDDL Generator and test utilities
5
-
6
- -- description:
7
- license : Apache-2.0
8
- license-file : LICENSE
9
- author : IOG Ledger Team
10
-
11
-
12
- -- copyright:
13
- category : Codec
14
- build-type : Simple
1
+ cabal-version : 3.4
2
+ name : cuddle
3
+ version : 0.5.0.0
4
+ synopsis : CDDL Generator and test utilities
5
+ description :
6
+ Cuddle is a library for generating and manipulating [CDDL](https://datatracker.ietf.org/doc/html/rfc8610).
7
+
8
+ Included in this package is a command line tool for working with CDDL files. It
9
+ currently supports four functions :
10
+
11
+ - Formatting of CDDL files
12
+ - Validating that a CDDL file is legal
13
+ - Generating random CBOR terms matching CDDL productions
14
+ - Testing compliance of a CBOR file against a CDDL spec.
15
+
16
+ license : Apache-2.0
17
+ license-file : LICENSE
18
+ author : IOG Ledger Team
19
+
20
+ copyright : 2025 Input Output Global Inc (IOG)
21
+ category : Codec
22
+ build-type : Simple
15
23
extra-doc-files : CHANGELOG.md
24
+ tested-with : ghc =={9.6, 9.8, 9.10, 9.12}
16
25
17
- -- extra-source-files:
26
+ source-repository head
27
+ type : git
28
+ location : https://github.com/input-output-hk/cuddle
29
+
30
+ source-repository this
31
+ type : git
32
+ location : https://github.com/input-output-hk/cuddle
33
+ tag : cuddle-0.5.0.0
34
+
35
+ flag example
36
+ description : Enable the example executable
37
+ manual : True
38
+ default : False
18
39
19
40
common warnings
20
- ghc-options : -Wall -Werror
41
+ ghc-options :
42
+ -Wall
43
+ -Werror
21
44
22
45
library
23
- import : warnings
46
+ import : warnings
24
47
exposed-modules :
25
48
Codec.CBOR.Cuddle.CBOR.Gen
26
49
Codec.CBOR.Cuddle.CBOR.Validator
27
50
Codec.CBOR.Cuddle.CDDL
28
- Codec.CBOR.Cuddle.CDDL.CtlOp
29
51
Codec.CBOR.Cuddle.CDDL.CTree
52
+ Codec.CBOR.Cuddle.CDDL.CtlOp
30
53
Codec.CBOR.Cuddle.CDDL.Postlude
31
54
Codec.CBOR.Cuddle.CDDL.Prelude
32
55
Codec.CBOR.Cuddle.CDDL.Resolve
@@ -40,75 +63,77 @@ library
40
63
Codec.CBOR.Cuddle.Pretty.Columnar
41
64
Codec.CBOR.Cuddle.Pretty.Utils
42
65
43
- other-modules :
44
-
45
- -- other-extensions:
46
66
build-depends :
47
- , base >= 4.18.2.1
48
- , base16-bytestring
49
- , boxes
50
- , bytestring
51
- , capability
52
- , cborg
53
- , containers
54
- , data-default-class
55
- , foldable1-classes-compat
56
- , generic-optics
57
- , regex-tdfa
58
- , hashable
59
- , megaparsec
60
- , mtl
61
- , mutable-containers
62
- , optics-core
63
- , ordered-containers
64
- , parser-combinators
65
- , prettyprinter
66
- , random < 1.3
67
- , scientific
68
- , text
69
- , tree-diff
70
-
71
- hs-source-dirs : src
67
+ base >= 4.18 && < 4.22 ,
68
+ base16-bytestring ^ >= 1.0.2 ,
69
+ boxes ^ >= 0.1.5 ,
70
+ bytestring >= 0.11.4 && < 0.13 ,
71
+ capability ^ >= 0.5 ,
72
+ cborg ^ >= 0.2.10 ,
73
+ containers >= 0.6.7 && < 0.8 ,
74
+ data-default-class ^ >= 0.2 ,
75
+ foldable1-classes-compat ^ >= 0.1.1 ,
76
+ generic-optics ^ >= 2.2.1 ,
77
+ hashable ^ >= 1.5 ,
78
+ megaparsec ^ >= 9.7 ,
79
+ mtl ^ >= 2.3.1 ,
80
+ mutable-containers ^ >= 0.3.4 ,
81
+ optics-core ^ >= 0.4.1 ,
82
+ ordered-containers ^ >= 0.2.4 ,
83
+ parser-combinators ^ >= 1.3 ,
84
+ prettyprinter ^ >= 1.7.1 ,
85
+ random < 1.3 ,
86
+ regex-tdfa ^ >= 1.3.2 ,
87
+ scientific ^ >= 0.3.8 ,
88
+ text >= 2.0.2 && < 2.2 ,
89
+ tree-diff ^ >= 0.3.4 ,
90
+
91
+ hs-source-dirs : src
72
92
default-language : GHC2021
73
93
74
94
executable example
75
- import : warnings
95
+ import : warnings
96
+
97
+ if flag(example)
98
+ buildable : True
99
+ else
100
+ buildable : False
101
+
76
102
default-language : GHC2021
77
103
other-modules :
78
104
Conway
79
105
Monad
80
106
81
- -- other-extensions:
82
- hs-source-dirs : example
83
- main-is : Main.hs
107
+ hs-source-dirs : example
108
+ main-is : Main.hs
84
109
build-depends :
85
- , base >= 4.14.0.0
86
- , cuddle
87
- , megaparsec
88
- , prettyprinter
89
- , random
90
- , text
110
+ base,
111
+ cuddle,
112
+ megaparsec,
113
+ prettyprinter,
114
+ random,
115
+ text,
91
116
92
117
executable cuddle
93
- import : warnings
118
+ import : warnings
94
119
default-language : GHC2021
95
- hs-source-dirs : ./bin/
96
- main-is : Main.hs
120
+ hs-source-dirs : ./bin/
121
+ main-is : Main.hs
97
122
build-depends :
98
- , base >= 4.14.0.0
99
- , base16-bytestring
100
- , bytestring
101
- , cborg
102
- , cuddle
103
- , megaparsec
104
- , optparse-applicative
105
- , prettyprinter
106
- , random
107
- , mtl
108
- , text
123
+ base,
124
+ base16-bytestring,
125
+ bytestring,
126
+ cborg,
127
+ cuddle,
128
+ megaparsec,
129
+ mtl,
130
+ optparse-applicative,
131
+ prettyprinter,
132
+ random,
133
+ text,
109
134
110
135
test-suite cuddle-test
111
- import : warnings
136
+ import : warnings
112
137
default-language : GHC2021
113
138
other-modules :
114
139
Test.Codec.CBOR.Cuddle.CDDL.Examples
@@ -117,21 +142,20 @@ test-suite cuddle-test
117
142
Test.Codec.CBOR.Cuddle.CDDL.Pretty
118
143
Test.Codec.CBOR.Cuddle.Huddle
119
144
120
- -- other-extensions:
121
- type : exitcode-stdio-1.0
122
- hs-source-dirs : test
123
- main-is : Main.hs
145
+ type : exitcode-stdio-1.0
146
+ hs-source-dirs : test
147
+ main-is : Main.hs
124
148
build-depends :
125
- , base >= 4.14.0.0
126
- , bytestring
127
- , cuddle
128
- , data-default-class
129
- , hspec
130
- , hspec-megaparsec
131
- , HUnit
132
- , megaparsec
133
- , prettyprinter
134
- , string-qq
135
- , QuickCheck
136
- , text
137
- , tree-diff
149
+ HUnit ^ >= 1.6.2 ,
150
+ QuickCheck ^ >= 2.16 ,
151
+ base,
152
+ bytestring,
153
+ cuddle,
154
+ data-default-class,
155
+ hspec ^ >= 2.11 ,
156
+ hspec- megaparsec ^ >= 2.2 ,
157
+ megaparsec,
158
+ prettyprinter,
159
+ string-qq ^ >= 0.0.6 ,
160
+ text,
161
+ tree-diff,
0 commit comments