-
Notifications
You must be signed in to change notification settings - Fork 76
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 #853 from o1-labs/feature/remove-polymorphism
[trivial] Remove polymorphism from field in `Checked_intf`
- Loading branch information
Showing
7 changed files
with
71 additions
and
94 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,34 +1,27 @@ | ||
module type Basic = sig | ||
type ('a, 'f) t = ('a, 'f) Types.As_prover.t | ||
|
||
type 'f field | ||
type field | ||
|
||
include Monad_let.S2 with type ('a, 'f) t := ('a, 'f field) t | ||
include Monad_let.S2 with type ('a, 'f) t := ('a, field) t | ||
|
||
val run : ('a, 'f field) t -> ('f field Cvar.t -> 'f field) -> 'a | ||
val run : ('a, field) t -> (field Cvar.t -> field) -> 'a | ||
|
||
val map2 : | ||
('a, 'f field) t | ||
-> ('b, 'f field) t | ||
-> f:('a -> 'b -> 'c) | ||
-> ('c, 'f field) t | ||
('a, field) t -> ('b, field) t -> f:('a -> 'b -> 'c) -> ('c, field) t | ||
|
||
val read_var : 'f field Cvar.t -> ('f field, 'f field) t | ||
val read_var : field Cvar.t -> (field, field) t | ||
|
||
val read : | ||
('var, 'value, 'f field, _) Types.Typ.t -> 'var -> ('value, 'f field) t | ||
val read : ('var, 'value, field, _) Types.Typ.t -> 'var -> ('value, field) t | ||
|
||
module Provider : sig | ||
type ('a, 'f) t | ||
|
||
val run : | ||
('a, 'f field) t | ||
-> ('f field Cvar.t -> 'f field) | ||
-> Request.Handler.t | ||
-> 'a option | ||
('a, field) t -> (field Cvar.t -> field) -> Request.Handler.t -> 'a option | ||
end | ||
|
||
module Handle : sig | ||
val value : ('var, 'value) Handle.t -> ('value, 'f field) Types.As_prover.t | ||
val value : ('var, 'value) Handle.t -> ('value, field) 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
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
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