-
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.
FStar_All.ml, FStar_Compiler_Effect.ml: Remove some footguns and unus…
…ed code
- Loading branch information
Showing
2 changed files
with
8 additions
and
10 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