-
Notifications
You must be signed in to change notification settings - Fork 232
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 #3551 from mtzguido/tidy_fstar_all
Tidying up a bit of FStar.All and FStar.Compiler.Effect
- Loading branch information
Showing
6 changed files
with
15 additions
and
25 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,7 @@ | ||
exception Failure = Failure | ||
let failwith x = raise (Failure x) | ||
let exit i = exit (Z.to_int i) | ||
let op_Bar_Greater (x : 'a) (f : ('a -> 'b)) : 'b = f x | ||
let op_Less_Bar (f : ('a -> 'b)) (x : 'a) : 'b = f x | ||
let pipe_right a f = f a | ||
let pipe_left f a = f a | ||
let try_with f1 f2 = try f1 () with | e -> f2 e | ||
|
||
(* Not used: handled specially by extraction. If used, | ||
you will get all sorts of weird failures (e.g. an incomplete match | ||
on f2!). *) | ||
(* let try_with f1 f2 = try f1 () with | e -> f2 e *) |
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