diff options
Diffstat (limited to 'backends')
-rw-r--r-- | backends/lean/Primitives.lean | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/backends/lean/Primitives.lean b/backends/lean/Primitives.lean index 034f41b2..4a66a453 100644 --- a/backends/lean/Primitives.lean +++ b/backends/lean/Primitives.lean @@ -49,6 +49,9 @@ deriving Repr, BEq open Result +instance Result_Inhabited (α : Type u) : Inhabited (Result α) := + Inhabited.mk (fail panic) + /- HELPERS -/ def ret? {α: Type} (r: Result α): Bool := |