Skip to content

Commit 88e3f84

Browse files
authored
Merge pull request #66 from input-output-hk/coot/sublibraries
Use sublibraries
2 parents 7e47605 + cd1e9d6 commit 88e3f84

File tree

77 files changed

+488
-1688
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

77 files changed

+488
-1688
lines changed

.github/workflows/github-page.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,9 @@ jobs:
3131
url: ${{ steps.deployment.outputs.page_url }}
3232

3333
steps:
34+
- name: Install pandoc
35+
run: sudo apt install pandoc
36+
3437
- name: Checkout ouroboros-network repository
3538
uses: actions/checkout@v4
3639

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

60+
- name: Run pandoc
61+
run: pandoc --from=gfm --to=haddock --output=README.haddock README.md
62+
5763
- name: Build Haddock documentation 🔧
5864
run: |
59-
cabal haddock-project --hackage all
65+
cabal haddock-project --prologue=README.haddock --hackage all
6066
6167
- name: Upload artifacts
6268
uses: actions/upload-pages-artifact@v3

.github/workflows/haskell.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
strategy:
1212
fail-fast: false
1313
matrix:
14-
ghc: ["8.10", "9.2", "9.4", "9.6", "9.8", "9.10"]
14+
ghc: ["9.6", "9.8", "9.10", "9.12"]
1515
os: [ubuntu-latest, macos-latest, windows-latest]
1616

1717
env:
@@ -90,8 +90,8 @@ jobs:
9090
- name: Build projects [build]
9191
run: cabal build all
9292

93-
- name: typed-protocols-examples [test]
94-
run: cabal run typed-protocols-examples:test
93+
- name: typed-protocols:test
94+
run: cabal run typed-protocols:test
9595

9696
# - name: typed-protocols-doc [test]
9797
# run: cabal test typed-protocols-doc

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
dist-newstyle/
2+
README.haddock

.stylish-haskell.yaml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,25 @@ steps:
191191
# Default: false
192192
space_surround: false
193193

194+
# Post qualify option moves any qualifies found in import declarations
195+
# to the end of the declaration. This also adjust padding for any
196+
# unqualified import declarations.
197+
#
198+
# - true: Qualified as <module name> is moved to the end of the
199+
# declaration.
200+
#
201+
# > import Data.Bar
202+
# > import Data.Foo qualified as F
203+
#
204+
# - false: Qualified remains in the default location and unqualified
205+
# imports are padded to align with qualified imports.
206+
#
207+
# > import Data.Bar
208+
# > import qualified Data.Foo as F
209+
#
210+
# Default: false
211+
post_qualify: true
212+
194213
# Language pragmas
195214
- language_pragmas:
196215
# We can generate different styles of language pragma lists.

README.md

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,20 +8,22 @@ typed-protocols
88

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

11+
Haddocks are published [here][haddocks].
12+
1113

1214
Public content
1315
--------------
1416

15-
Duncan Coutts (@dcoutts) Haskell eXchange 2019 [talk][haskell-eXchange].
17+
[Duncan Coutts][dcoutts] Haskell eXchange 2019 [talk][haskell-eXchange].
1618

17-
Monadic party workshop by Marcin Szamotulski (@coot):
19+
Monadic party workshop by Marcin Szamotulski ([coot]):
1820
* [part 1][monadic-party-part-1]
1921
* [part 2][monadic-party-part-2]
2022
* [part 2][monadic-party-part-3]
2123

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

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

2628

2729
[protocol-pipelining]: https://www.wikiwand.com/en/Protocol_pipelining
@@ -32,3 +34,6 @@ An [Agda][typed-protocols-agda] implementation by Marcin Szamotulski (@coot).
3234
[haskell-love-slides]: https://coot.me/posts/typed-protocols-at-haskell-love.html
3335
[haskell-love]: https://www.youtube.com/watch?v=EbK6VAqYh3g
3436
[typed-protocols-agda]: https://coot.me/agda/posts.agda.typed-protocols.html
37+
[coot]: https://github.com/coot
38+
[dcoutts]: https://github.com/dcoutts
39+
[haddocks]: https://input-output-hk.github.io/typed-protocols

cabal.project

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
11
index-state: 2025-05-05T00:00:00Z
22

33
packages: ./typed-protocols
4-
./typed-protocols-cborg
5-
./typed-protocols-stateful
6-
./typed-protocols-stateful-cborg
7-
./typed-protocols-examples
84
./typed-protocols-doc
95

106
test-show-details: direct
@@ -17,3 +13,11 @@ if impl(ghc >= 9.12)
1713
if os(windows)
1814
package text
1915
flags: -simdutf
16+
17+
source-repository-package
18+
type: git
19+
location: https://github.com/input-output-hk/io-sim
20+
tag: aef112549bf85d51a03919008b6091af8933e9e2
21+
--sha256: sha256-yfhBeAYwWktqBAkvXUVdrgBzNvTwAqMKglcjwflMtM4=
22+
subdir: io-classes
23+
io-sim

scripts/check-stylish.sh

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,4 @@ export LC_ALL=C.UTF-8
55

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

8-
$FD . './typed-protocols' -e hs -E Setup.hs -E Core.hs -X stylish-haskell -c .stylish-haskell.yaml -i
9-
$FD . './typed-protocols-cborg' -e hs -E Setup.hs -X stylish-haskell -c .stylish-haskell.yaml -i
10-
$FD . './typed-protocols-examples' -e hs -E Setup.hs -E Channel.hs -X stylish-haskell -c .stylish-haskell.yaml -i
8+
$FD . './typed-protocols' -e hs -E Setup.hs -E Core.hs -E Channel.hs -X stylish-haskell -c .stylish-haskell.yaml -i

typed-protocols-cborg/CHANGELOG.md

Lines changed: 0 additions & 14 deletions
This file was deleted.

typed-protocols-cborg/LICENSE

Lines changed: 0 additions & 177 deletions
This file was deleted.

typed-protocols-cborg/NOTICE

Lines changed: 0 additions & 14 deletions
This file was deleted.

typed-protocols-cborg/README.md

Lines changed: 0 additions & 6 deletions
This file was deleted.

typed-protocols-cborg/typed-protocols-cborg.cabal

Lines changed: 0 additions & 38 deletions
This file was deleted.

typed-protocols-doc/src/Network/TypedProtocol/Documentation/DefaultMain.hs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
{-# LANGUAGE FlexibleContexts #-}
2-
31
module Network.TypedProtocol.Documentation.DefaultMain
42
where
53

0 commit comments

Comments
 (0)