Skip to content
This repository has been archived by the owner on Jul 24, 2019. It is now read-only.

Commit

Permalink
s/Run/Evaluate/
Browse files Browse the repository at this point in the history
  • Loading branch information
clarus committed May 10, 2015
1 parent c7cec7b commit 8164b99
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Exception.v
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
Require Import Coq.Lists.List.
Require Import FunctionNinjas.All.
Require Import Io.All.
Require Io.Evaluate.
Require Io.List.
Require Io.Run.

Import ListNotations.
Import C.Notations.
Expand All @@ -26,7 +26,7 @@ Definition effect (E : Effect.t) (Exc : Type) : Effect.t :=

Definition lift {E : Effect.t} {Exc A : Type} (x : C.t E A)
: C.t (effect E Exc) A :=
C.run (fun c => call (effect E Exc) (Command.Ok c)) x.
Evaluate.command (fun c => call (effect E Exc) (Command.Ok c)) x.

Definition raise {E : Effect.t} {Exc A : Type} (exc : Exc)
: C.t (effect E Exc) A :=
Expand All @@ -35,7 +35,7 @@ Definition raise {E : Effect.t} {Exc A : Type} (exc : Exc)

Definition run {E : Effect.t} {Exc A : Type} (x : C.t (effect E Exc) A)
: C.t E (A + list Exc) :=
Run.exception (fun (c : Effect.command (effect E Exc)) =>
Evaluate.exception (fun (c : Effect.command (effect E Exc)) =>
match c with
| Command.Ok c =>
let! answer := call E c in
Expand Down

0 comments on commit 8164b99

Please sign in to comment.