Skip to content

Release cuddle 0.5.0.0 #78

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 3, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 17 additions & 13 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,28 +16,28 @@

## 0.3.1.0 -- 2024-08-15

* `collectFrom` now adds a first definition in the generated Huddle referencing
the top level elements, to be compatible with the CDDL spec.
* `collectFrom` now adds a first definition in the generated Huddle referencing
the top level elements, to be compatible with the CDDL spec.

## 0.3.2.0 -- 2024-09-11
## 0.3.2.0 -- 2024-09-11

* Leading rather than trailing commas in the pretty printer.

## 0.3.3.0 -- 2024-11-13

* Introduce HuddleM, another way to define a Huddle spec. This allows total
control over the order that items are presented in the CDDL, at the cost
* Introduce HuddleM, another way to define a Huddle spec. This allows total
control over the order that items are presented in the CDDL, at the cost
of making it somewhat harder to re-use items (they need to be returned from
the monad).

## O.3.5.0 -- 2024-11-25

* Add support for constraints on references and generic references.
* Add support for using references as range bounds. Note that this breaks
backwards compatibility - because the range arguments are now more generic,
additional hints are required to type literal numerics correctly. Typically
this is most easily fixed by adding a call `int` for any numeric literals in
ranges. An example is shown in `example/Conway.hs`
* Add support for using references as range bounds. Note that this breaks
backwards compatibility - because the range arguments are now more generic,
additional hints are required to type literal numerics correctly. Typically
this is most easily fixed by adding a call `int` for any numeric literals in
ranges. An example is shown in `example/Conway.hs`

## 0.3.6.0 -- 2024-12-02
* Support having keys in group entries. This is needed when using a group to
Expand All @@ -46,13 +46,17 @@
where some type hints (using 'a') are needed to properly type entries in groups,
where previously they were unambiguous.

Note that it is not yet supported to use a group inside a map, where the
Note that it is not yet supported to use a group inside a map, where the
issue of merging keys arises.

## 0.4.0.0 -- 2025-05-02
* Rewrote the prettyprinter to make the output more human-readable.
* Added `collectFromInit` to make it possible to specify the order of
definitions manually. `collectFrom` and `collectFromInit` now expect
* Added `collectFromInit` to make it possible to specify the order of
definitions manually. `collectFrom` and `collectFromInit` now expect
`HuddleItem`s in their arguments
* More Huddle terms now accept comments (e.g. `ArrayEntry`, `ArrayChoice`)
* Parser now preserves most comments.

## 0.5.0.0 -- 2025-06-03

* Implement a validator for CBOR terms.
4 changes: 2 additions & 2 deletions cuddle.cabal
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
cabal-version: 3.4
name: cuddle
version: 0.4.0.0
version: 0.5.0.0
synopsis: CDDL Generator and test utilities

-- description:
Expand Down Expand Up @@ -44,7 +44,7 @@ library

-- other-extensions:
build-depends:
, base >=4.18.3.0
, base >=4.18.2.1
, base16-bytestring
, boxes
, bytestring
Expand Down