-
Notifications
You must be signed in to change notification settings - Fork 78
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #854 from o1-labs/feature/lift-typ
Remove polymorphism from `As_prover.t`, hoist `Typ.t`
- Loading branch information
Showing
12 changed files
with
386 additions
and
477 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,27 @@ | ||
module type Basic = sig | ||
type ('a, 'f) t = ('a, 'f) Types.As_prover.t | ||
module Types : Types.Types | ||
|
||
type field | ||
|
||
include Monad_let.S2 with type ('a, 'f) t := ('a, field) t | ||
type 'a t = 'a Types.As_prover.t | ||
|
||
val run : ('a, field) t -> (field Cvar.t -> field) -> 'a | ||
include Monad_let.S with type 'a t := 'a t | ||
|
||
val map2 : | ||
('a, field) t -> ('b, field) t -> f:('a -> 'b -> 'c) -> ('c, field) t | ||
val run : 'a t -> (field Cvar.t -> field) -> 'a | ||
|
||
val read_var : field Cvar.t -> (field, field) t | ||
val map2 : 'a t -> 'b t -> f:('a -> 'b -> 'c) -> 'c t | ||
|
||
val read : ('var, 'value, field, _) Types.Typ.t -> 'var -> ('value, field) t | ||
val read_var : field Cvar.t -> field t | ||
|
||
val read : ('var, 'value, field) Types.Typ.t -> 'var -> 'value t | ||
|
||
module Provider : sig | ||
type ('a, 'f) t | ||
type 'a t | ||
|
||
val run : | ||
('a, field) t -> (field Cvar.t -> field) -> Request.Handler.t -> 'a option | ||
val run : 'a t -> (field Cvar.t -> field) -> Request.Handler.t -> 'a option | ||
end | ||
|
||
module Handle : sig | ||
val value : ('var, 'value) Handle.t -> ('value, field) Types.As_prover.t | ||
val value : ('var, 'value) Handle.t -> 'value Types.As_prover.t | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.