Module Generic.Unmagic

Custom unmagic key.

The Fun.Generic.unmagic function consults this key in the metadata of a gist g before unmagicing the value.

type 'a t = Stdlib.Obj.t -> ('a, string) Stdlib.result

The type for custom unmagic functions.

val mem : ('a, 'b) Type.Gist.Meta.t2 -> bool
val add : 'b t -> ('a, 'b) Type.Gist.Meta.t2 -> ('a, 'b) Type.Gist.Meta.t2
val find : ('a, 'b) Type.Gist.Meta.t2 -> 'b t option
val remove : ('a, 'b) Type.Gist.Meta.t2 -> ('a, 'b) Type.Gist.Meta.t2