hackwaly / ocamlearlybird

OCaml debug adapter
MIT License
208 stars 23 forks source link

Better opaque/abstract value inspection #56

Open hackwaly opened 7 months ago

hackwaly commented 7 months ago

I tested utop example. It displays "some_values" perfectly. I don't know how it works. Maybe we can learn how it achieved.

https://github.com/ocaml-community/utop/blob/8cc563282597abdb8f5cca64df41166c5ebca6b5/examples/interact/test_program.ml#L1-L11

image
sim642 commented 7 months ago

Is it really abstract/opaque there though?

hackwaly commented 7 months ago

I think it is.

type value = V : string * _ -> value

val interact
  :  ?search_path:string list
  -> ?build_dir:string
  -> unit:string
  -> loc:(string * int * int * int)
  -> values:value list
  -> unit
  -> unit