Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow users to redefine the list operators #133

Open
kit-ty-kate opened this issue Nov 7, 2020 · 0 comments
Open

Allow users to redefine the list operators #133

kit-ty-kate opened this issue Nov 7, 2020 · 0 comments

Comments

@kit-ty-kate
Copy link
Collaborator

(* TODO: Make this work *)
(*
let test_list_redefined ctxt =
let module M = struct
type redef_list =
| []
| (::) of int * int
type t = {field : int list} [@@deriving to_yojson]
let x = {field = List.([1;2])}
end
in
let expected = `List [`Int 1; `Int 2] in
assert_equal ~ctxt ~printer:show_json expected M.x
*)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant