Skip to content

Commit

Permalink
examples: Adapt to Coq 8.10
Browse files Browse the repository at this point in the history
  • Loading branch information
Lysxia committed Jan 15, 2020
1 parent b75fc77 commit 2365f88
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions examples/IO.v
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@ Definition example : itree IO unit :=
Definition SOME_NUMBER := 13.

Definition test_interp : itree IO unit -> bool := fun t =>
match t.(observe) with
match observe t with
| VisF e k =>
match e in IO X return (X -> _) -> _ with
| Read => fun id =>
match (k (id SOME_NUMBER)).(observe) with
match observe (k (id SOME_NUMBER)) with
| VisF (Write n) _ => n =? SOME_NUMBER
| _ => false
end
Expand Down
2 changes: 1 addition & 1 deletion examples/Nimp.v
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Inductive com : Type :=
| seq : com -> com -> com
.

Infix ";;" := seq (at level 60, right associativity) : com_scope.
Infix ";;" := seq (at level 61, right associativity) : com_scope.
Delimit Scope com_scope with com.
Open Scope com_scope.

Expand Down

0 comments on commit 2365f88

Please sign in to comment.