Skip to content

Use sublibraries #66

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 11 commits into from
May 21, 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
8 changes: 7 additions & 1 deletion .github/workflows/github-page.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ jobs:
url: ${{ steps.deployment.outputs.page_url }}

steps:
- name: Install pandoc
run: sudo apt install pandoc

- name: Checkout ouroboros-network repository
uses: actions/checkout@v4

Expand All @@ -54,9 +57,12 @@ jobs:
- name: Build plan
run: cabal build --dry-run --enable-tests all

- name: Run pandoc
run: pandoc --from=gfm --to=haddock --output=README.haddock README.md

- name: Build Haddock documentation 🔧
run: |
cabal haddock-project --hackage all
cabal haddock-project --prologue=README.haddock --hackage all

- name: Upload artifacts
uses: actions/upload-pages-artifact@v3
Expand Down
6 changes: 3 additions & 3 deletions .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.8", "9.10"]
ghc: ["9.6", "9.8", "9.10", "9.12"]
os: [ubuntu-latest, macos-latest, windows-latest]

env:
Expand Down Expand Up @@ -90,8 +90,8 @@ jobs:
- name: Build projects [build]
run: cabal build all

- name: typed-protocols-examples [test]
run: cabal run typed-protocols-examples:test
- name: typed-protocols:test
run: cabal run typed-protocols:test

# - name: typed-protocols-doc [test]
# run: cabal test typed-protocols-doc
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
dist-newstyle/
README.haddock
19 changes: 19 additions & 0 deletions .stylish-haskell.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,25 @@ steps:
# Default: false
space_surround: false

# Post qualify option moves any qualifies found in import declarations
# to the end of the declaration. This also adjust padding for any
# unqualified import declarations.
#
# - true: Qualified as <module name> is moved to the end of the
# declaration.
#
# > import Data.Bar
# > import Data.Foo qualified as F
#
# - false: Qualified remains in the default location and unqualified
# imports are padded to align with qualified imports.
#
# > import Data.Bar
# > import qualified Data.Foo as F
#
# Default: false
post_qualify: true

# Language pragmas
- language_pragmas:
# We can generate different styles of language pragma lists.
Expand Down
13 changes: 9 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,20 +8,22 @@ typed-protocols

A robust session type framework which supports [protocol pipelining][protocol-pipelining].

Haddocks are published [here][haddocks].


Public content
--------------

Duncan Coutts (@dcoutts) Haskell eXchange 2019 [talk][haskell-eXchange].
[Duncan Coutts][dcoutts] Haskell eXchange 2019 [talk][haskell-eXchange].

Monadic party workshop by Marcin Szamotulski (@coot):
Monadic party workshop by Marcin Szamotulski ([coot]):
* [part 1][monadic-party-part-1]
* [part 2][monadic-party-part-2]
* [part 2][monadic-party-part-3]

Talk at [Haskell Love 2021][haskell-love] by Marcin Szamotulski (@coot), [slides][haskell-love-slides].
Talk at [Haskell Love 2021][haskell-love] by Marcin Szamotulski ([coot]), [slides][haskell-love-slides].

An [Agda][typed-protocols-agda] implementation by Marcin Szamotulski (@coot).
An [Agda][typed-protocols-agda] implementation by Marcin Szamotulski ([coot]).


[protocol-pipelining]: https://www.wikiwand.com/en/Protocol_pipelining
Expand All @@ -32,3 +34,6 @@ An [Agda][typed-protocols-agda] implementation by Marcin Szamotulski (@coot).
[haskell-love-slides]: https://coot.me/posts/typed-protocols-at-haskell-love.html
[haskell-love]: https://www.youtube.com/watch?v=EbK6VAqYh3g
[typed-protocols-agda]: https://coot.me/agda/posts.agda.typed-protocols.html
[coot]: https://github.com/coot
[dcoutts]: https://github.com/dcoutts
[haddocks]: https://input-output-hk.github.io/typed-protocols
12 changes: 8 additions & 4 deletions cabal.project
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
index-state: 2025-05-05T00:00:00Z

packages: ./typed-protocols
./typed-protocols-cborg
./typed-protocols-stateful
./typed-protocols-stateful-cborg
./typed-protocols-examples
./typed-protocols-doc

test-show-details: direct
Expand All @@ -17,3 +13,11 @@ if impl(ghc >= 9.12)
if os(windows)
package text
flags: -simdutf

source-repository-package
type: git
location: https://github.com/input-output-hk/io-sim
tag: aef112549bf85d51a03919008b6091af8933e9e2
--sha256: sha256-yfhBeAYwWktqBAkvXUVdrgBzNvTwAqMKglcjwflMtM4=
subdir: io-classes
io-sim
4 changes: 1 addition & 3 deletions scripts/check-stylish.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,4 @@ export LC_ALL=C.UTF-8

[[ -x '/usr/bin/fd' ]] && FD="fd" || FD="fdfind"

$FD . './typed-protocols' -e hs -E Setup.hs -E Core.hs -X stylish-haskell -c .stylish-haskell.yaml -i
$FD . './typed-protocols-cborg' -e hs -E Setup.hs -X stylish-haskell -c .stylish-haskell.yaml -i
$FD . './typed-protocols-examples' -e hs -E Setup.hs -E Channel.hs -X stylish-haskell -c .stylish-haskell.yaml -i
$FD . './typed-protocols' -e hs -E Setup.hs -E Core.hs -E Channel.hs -X stylish-haskell -c .stylish-haskell.yaml -i
14 changes: 0 additions & 14 deletions typed-protocols-cborg/CHANGELOG.md

This file was deleted.

177 changes: 0 additions & 177 deletions typed-protocols-cborg/LICENSE

This file was deleted.

14 changes: 0 additions & 14 deletions typed-protocols-cborg/NOTICE

This file was deleted.

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

This file was deleted.

38 changes: 0 additions & 38 deletions typed-protocols-cborg/typed-protocols-cborg.cabal

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
{-# LANGUAGE FlexibleContexts #-}

module Network.TypedProtocol.Documentation.DefaultMain
where

Expand Down
Loading