Skip to content

Commit f861c0d

Browse files
committed
tweaks
1 parent 78b43af commit f861c0d

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

StdLib/List.gr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import Result
1414
import Maybe
1515
import Bool
1616

17-
data List a where Empty; Next a (List a)
17+
data List a where Empty | Next a (List a)
1818

1919
--- Append two lists
2020
append_list : forall {a : Type} . List a -> List a -> List a

examples/effects_nondet.gr

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import List
1010

1111
data Labels = Toss | Drop
1212

13-
-- Operations
13+
-- (Sigma functor) - Signature of operations
1414
data GameOps : Set Labels -> Type -> Type where
1515
FlipCoin : forall {r : Type} . () -> (Bool -> r) [2] -> GameOps {Toss} r;
1616
Fumble : forall {r : Type} . () -> (Void -> r) [0] -> GameOps {Drop} r
@@ -33,7 +33,7 @@ foo = call FlipCoin ()
3333

3434
-- Two coin flips, all good
3535
example1 : (Bool, Bool) <Eff (Set Labels) GameOps {Toss}>
36-
example1 = let
36+
example1 = let -- do x <- ...
3737
x <- call FlipCoin ();
3838
y <- call FlipCoin ()
3939
in pure (x, y)

0 commit comments

Comments
 (0)