Skip to content

haddocks, changelogs and cabal files #64

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 5 commits into from
Sep 27, 2024
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
2 changes: 1 addition & 1 deletion .github/workflows/haskell.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
strategy:
fail-fast: false
matrix:
ghc: ["8.10", "9.2", "9.4", "9.6", "9.10"]
ghc: ["8.10", "9.2", "9.4", "9.6", "9.8", "9.10"]
os: [ubuntu-latest, macos-latest, windows-latest]

env:
Expand Down
8 changes: 8 additions & 0 deletions typed-protocols-cborg/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Revision history for typed-protocols-cborg

## 0.3.0.0

* bumped version to agree with `typed-protocols-stateful-0.3.0.0`

## 0.2.0.0

* updated to use `typed-protocols-0.2.0.0`

## 0.1.0.0 -- 2021-07-28

* Initial experiments and prototyping
Expand Down
2 changes: 1 addition & 1 deletion typed-protocols-cborg/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ typed-protocols-cborg
=====================

[CBOR](https://hackage.haskell.org/package/cborg) codecs for
[typed-protocols](https://input-output-hk.github.io/ouroboros-network/typed-protocols/Network-TypedProtocol.html)
[typed-protocols](https://input-output-hk.github.io/typed-protocols)
package.
4 changes: 2 additions & 2 deletions typed-protocols-cborg/typed-protocols-cborg.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ author: Alexander Vieth, Duncan Coutts, Marcin Szamotulski
maintainer: alex@well-typed.com, duncan@well-typed.com, marcin.szamotulski@iohk.io
category: Control
build-type: Simple
tested-with: GHC == {8.10, 9.2, 9.4, 9.6}
extra-source-files: CHANGELOG.md, README.md
tested-with: GHC == {8.10, 9.2, 9.4, 9.6, 9.8, 9.10}
extra-doc-files: CHANGELOG.md, README.md

library
exposed-modules: Network.TypedProtocol.Codec.CBOR
Expand Down
1 change: 0 additions & 1 deletion typed-protocols-doc/typed-protocols-doc.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ category: Network
build-type: Simple
extra-doc-files: CHANGELOG.md
NOTICE
-- extra-source-files:

common warnings
ghc-options: -Wall
Expand Down
6 changes: 3 additions & 3 deletions typed-protocols-examples/typed-protocols-examples.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,15 @@ license: Apache-2.0
license-files:
LICENSE
NOTICE
copyright: 2019-2023 Input Output Global Inc (IOG)
copyright: 2019-2024 Input Output Global Inc (IOG)
author: Alexander Vieth, Duncan Coutts, Marcin Szamotulski
maintainer: alex@well-typed.com, duncan@well-typed.com, marcin.szamotulski@iohk.io
category: Control
build-type: Simple
tested-with: GHC == {8.10, 9.2, 9.4, 9.6}
tested-with: GHC == {8.10, 9.2, 9.4, 9.6, 9.8, 9.10}

-- These should probably be added at some point.
-- extra-source-files: ChangeLog.md, README.md
-- extra-doc-files: ChangeLog.md, README.md

library
exposed-modules: Network.TypedProtocol.Channel
Expand Down
12 changes: 12 additions & 0 deletions typed-protocols-stateful-cborg/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# Revision history of typed-protocols-stateful

## 0.3.0.0

* bumped version to agree with `typed-protocols-stateful-0.3.0.0`, in particular:
when encoding the local state associated to the initial message state is
passed to the codec.

## 0.2.0.0

* Initial version

6 changes: 0 additions & 6 deletions typed-protocols-stateful-cborg/ChangeLog.md

This file was deleted.

2 changes: 1 addition & 1 deletion typed-protocols-stateful-cborg/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ typed-protocols-stateful-cborg
==============================

[CBOR](https://hackage.haskell.org/package/cborg) codecs for
[typed-protocols-stateful](https://input-output-hk.github.io/ouroboros-network/typed-protocols/Network-TypedProtocol-Stateful-Peer.html)
[typed-protocols-stateful](https://input-output-hk.github.io/typed-protocols/typed-protocols-stateful)
package.
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,11 @@ copyright: 2022-2024 Input Output Global Inc (IOG)
author: Marcin Szamotulski
maintainer: marcin.szamotulski@iohk.io
category: Control
tested-with: GHC == {8.10, 9.2, 9.4, 9.6, 9.8, 9.10}
build-type: Simple

-- These should probably be added at some point.
extra-source-files: ChangeLog.md, README.md
extra-doc-files: CHANGELOG.md, README.md

library
exposed-modules: Network.TypedProtocol.Stateful.Codec.CBOR
Expand Down
20 changes: 20 additions & 0 deletions typed-protocols-stateful/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Revision history of typed-protocols-stateful

## 0.3.0.0

* when encoding a message the local state associated to the initial message
state, rather than final state, is passed to the codec. For that reason:
* `Yield` requires local state associated to both the initial and final protocol state
* `Codec` and `Driver` have changed accordingly

This change eliminates the need to have add extra fields in messages which
are not send over the wire, see the `Network.TypedProtocol.Stateful.ReqResp`
example.
* `AnyMessage` takes only the local state associated to the initial protocol state of the `Message`.
* Removed `Show` instance of `AnyMessage`, provided instead `showAnyMessage`.
* `AnyMessageWithAgency` pattern synonym is exported as a constructor of `AnyMessage`.
* constraints of `prop_*` APIs where changed.

## 0.2.0.0

* Initial version
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ import Network.TypedProtocol.Core as Core
--
-- * the protocol itself;
-- * the client\/server role;
-- *.the current protocol state;
-- * the current protocol state;
-- * the local state type;
-- * the monad in which the peer operates; and
-- * the type of any final result once the peer terminates.
Expand Down
5 changes: 2 additions & 3 deletions typed-protocols-stateful/typed-protocols-stateful.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,8 @@ author: Marcin Szamotulski
maintainer: marcin.szamotulski@iohk.io
category: Control
build-type: Simple

-- These should probably be added at some point.
-- extra-source-files: ChangeLog.md, README.md
tested-with: GHC == {8.10, 9.2, 9.4, 9.6, 9.8, 9.10}
extra-doc-files: CHANGELOG.md

library
exposed-modules: Network.TypedProtocol.Stateful.Peer
Expand Down
29 changes: 23 additions & 6 deletions typed-protocols/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,28 @@
# Revision history for typed-protocols

## [Unreleased]

- A major redesign of `typed-protocols`. `Protocol` class requires data family
`Message` and new associated type familiy instance `StateAgency`. One also
needs to define singletons and `Sing` & `SingI` instances from the
[`singletons`][singletons-3.0.1] package.
## 0.3.0.0

* `AnyMessageWithAgency` pattern synonym is exported as a constructor of `AnyMessage`.
* Bumped version to agree with `typed-protocols-stateful`.

## 0.2.0.0

* A major redesign of `typed-protocols`.
* `Protocol` class does not require to provide proof obligations for agency.
Proofs are now provided by the framework for all protocols. Agency is now
provided by an associated type family `StateAgency`, and evidence for it,
in form of a singleton, by `StateToken` type family
(similar to `Sing` from the `singletons` package).
* `Peer` takes a different evidence type for agency,
`Network.TypedProtocol.Peer.{Client,Server}` modules provide pattern synonyms
which provide agency evidence and thus are easier to use.
* One `Peer` is provided for both non- and pipelined protocol evolution.
An extra parameter is added of kind `IsPipelined`. As a result
`Outstanding` is now a type family rather than a type alias.
* `ActiveAgency` type class is used to distinguish states in which one side
has an agency (e.g. the protocol hasn't yet terminated), `nonActiveState` can
be used in the same way as `Data.Void.absurd` - which is useful when writing
codecs.

## 0.1.1.1
* unbuildable (with `base < 0` constraint in CHaP); We cannot support
Expand Down
6 changes: 3 additions & 3 deletions typed-protocols/typed-protocols.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@ license: Apache-2.0
license-files:
LICENSE
NOTICE
copyright: 2019-2023 Input Output Global Inc (IOG)
copyright: 2019-2024 Input Output Global Inc (IOG)
author: Alexander Vieth, Duncan Coutts, Marcin Szamotulski
maintainer: alex@well-typed.com, duncan@well-typed.com, marcin.szamotulski@iohk.io
category: Control
build-type: Simple
tested-with: GHC == {8.10, 9.2, 9.4, 9.6}
extra-source-files: CHANGELOG.md
tested-with: GHC == {8.10, 9.2, 9.4, 9.6, 9.8, 9.10}
extra-doc-files: CHANGELOG.md

library
exposed-modules: Network.TypedProtocol
Expand Down
Loading