Skip to content

Commit

Permalink
fix(proof-libs/f*): f_deref: make it a typeclass
Browse files Browse the repository at this point in the history
  • Loading branch information
W95Psp committed Jul 10, 2024
1 parent 9137617 commit e7b724a
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion proof-libs/fstar/core/Core.Ops.Deref.fst
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
module Core.Ops.Deref

let f_deref = id
class t_Deref (t_Self: Type0) = {
f_Target: Type0;
f_deref: t_Self -> f_Target;
}

unfold
instance identity_Deref t_Self: t_Deref t_Self = {
f_Target = t_Self;
f_deref = (fun x -> x);
}

0 comments on commit e7b724a

Please sign in to comment.