Skip to content

Commit 1ea3061

Browse files
committed
fix examples, readme, and tests
1 parent 076c050 commit 1ea3061

File tree

14 files changed

+22
-34
lines changed

14 files changed

+22
-34
lines changed

README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,7 @@ dune exec examples/mpst/calc.exe
6666
1. Declare the name of participants (__roles__) and __labels__:
6767

6868
```
69-
open Mpst.BasicCombinators
70-
open Mpst.Unicast
69+
open Mpst_basic
7170
7271
[%%declare_roles_prefixed a, b, c] (* note that the order matters *)
7372
[%%declare_labels msg]

examples/calc/calc.ml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
open Mpst.BasicCombinators
2-
open Mpst.Unicast
1+
open Mpst_basic
32

43
type op = Add | Sub | Mul | Div
54

examples/calc/dune

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@
33
(modules calc)
44
(preprocess
55
(staged_pps mpst.ppx.ty))
6-
(libraries mpst))
6+
(libraries mpst-basic))

examples/mixed_choice/dune

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@
33
(modules mixed1)
44
(preprocess
55
(staged_pps mpst.ppx.ty))
6-
(libraries mpst))
6+
(libraries mpst-basic))

examples/mixed_choice/mixed1.ml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
open Mpst.BasicCombinators
2-
open Mpst.Unicast
1+
open Mpst_basic
32

43
[%%declare_roles a, b, c]
54
[%%declare_labels req, resp, timeout]

tests/dune

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,51 +3,51 @@
33
(modules test_protocols_mergefail)
44
(preprocess
55
(pps mpst.ppx))
6-
(libraries mpst oUnit))
6+
(libraries mpst-basic oUnit))
77

88
(test
99
(name test_protocols_merge)
1010
(modules test_protocols_merge)
1111
(preprocess
1212
(pps mpst.ppx))
13-
(libraries mpst oUnit))
13+
(libraries mpst-basic oUnit))
1414

1515
(test
1616
(name test_run_loop)
1717
(modules test_run_loop)
1818
(preprocess
1919
(pps mpst.ppx))
20-
(libraries mpst oUnit))
20+
(libraries mpst-basic oUnit))
2121

2222
(test
2323
(name test_protocols_multicast)
2424
(modules test_protocols_multicast)
2525
(preprocess
2626
(pps mpst.ppx))
27-
(libraries mpst oUnit))
27+
(libraries mpst-basic oUnit))
2828

2929
(test
3030
(name test_run_multicast)
3131
(modules test_run_multicast)
3232
(preprocess
3333
(pps mpst.ppx))
34-
(libraries mpst oUnit))
34+
(libraries mpst-basic oUnit))
3535

3636
(test
3737
(name test_linearity_fail)
3838
(modules test_linearity_fail)
3939
(preprocess
4040
(staged_pps mpst.ppx.ty))
41-
(libraries mpst oUnit))
41+
(libraries mpst-basic oUnit))
4242

4343
(test
4444
(name test_ppx_ty)
4545
(modules test_ppx_ty)
4646
(preprocess
4747
(staged_pps mpst.ppx.ty))
48-
(libraries mpst oUnit))
48+
(libraries mpst-basic oUnit))
4949

5050
(test
5151
(name test_dynChan)
5252
(modules test_dynChan)
53-
(libraries mpst oUnit))
53+
(libraries mpst-basic oUnit))

tests/test_dynChan.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
module DynChan = Mpst.DynChan
1+
module DynChan = Mpst_basic.DynChan
22
open OUnit
33

44
let test_unify () =

tests/test_linearity_fail.ml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
open Mpst.BasicCombinators
2-
open Mpst.Unicast
1+
open Mpst_basic
32
open Rows
43
open OUnit
54

tests/test_ppx_ty.ml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
open Mpst.BasicCombinators
2-
open Mpst.Unicast
1+
open Mpst_basic
32
open Rows
43
open OUnit
54

tests/test_protocols_merge.ml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
open Mpst.BasicCombinators
2-
open Mpst.Unicast
1+
open Mpst_basic
32
open Rows
43
open OUnit
54

0 commit comments

Comments
 (0)