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

Three more examples of monotonicity failures in OCaml #12

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

yallop
Copy link
Contributor

@yallop yallop commented Jul 15, 2021

This PR adds three more examples of monotonicity failures in OCaml, relating to

  1. the relaxed value restriction and strict positivity
  2. compatibility
  3. labeled arguments

Another possible addition involves constructor disambiguation:

type t = A | B

module M :
sig
  type t (* = A *)
end =
struct
  type t = A
end

let f = M.[A;B]

but I think that one's less convincing, because it's more about namespacing than type systems as such.

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

Successfully merging this pull request may close these issues.

1 participant