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

Make MDX compatible with 4.14 #356

Merged
merged 1 commit into from
Nov 29, 2021
Merged

Conversation

NathanReb
Copy link
Contributor

Not much to note here, some changes in the typing API, all pretty straight forward (see the upstream PR ocaml/ocaml#10337) and the new Shape.t returned by type_structure which we can simply ignore as @voodoos confirmed it's not really relevant to MDX!

Signed-off-by: Nathan Rebours <nathan.p.rebours@gmail.com>
Copy link
Collaborator

@Leonidas-from-XIV Leonidas-from-XIV left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR! The changes are overall quite minor indeed but of course the difficult part is to figure out how to do stuff in 4.14 and not writing down the LoC 👍 I have one comment, that would make it possible to potentially simplify the code a tiny bit.

lib/top/compat_top.ml Show resolved Hide resolved
Copy link
Collaborator

@Leonidas-from-XIV Leonidas-from-XIV left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

After discussion we decided to look whether this can be optimized at a potentially later point in time.

@NathanReb NathanReb merged commit 4f765a8 into realworldocaml:main Nov 29, 2021
Leonidas-from-XIV added a commit to Leonidas-from-XIV/opam-repository that referenced this pull request Dec 8, 2021
CHANGES:

#### Added

- Make MDX compatible with OCaml 4.14 (realworldocaml/mdx#356, @NathanReb)
RadioPotin pushed a commit to RadioPotin/opam-repository that referenced this pull request Dec 9, 2021
CHANGES:

#### Added

- Make MDX compatible with OCaml 4.14 (realworldocaml/mdx#356, @NathanReb)
Leonidas-from-XIV added a commit to Leonidas-from-XIV/opam-repository that referenced this pull request Dec 14, 2021
CHANGES:

#### Added

- Add trailing `;;` to the output of toplevel phrases that were missing it.
  (realworldocaml/mdx#346, @Leonidas-from-XIV)
- Make MDX compatible with OCaml 4.14 (realworldocaml/mdx#356, @NathanReb)

#### Fixed

- Use the same output as the normal toplevel. Mdx used to carry an unsafe patch
  to work around a bug fixed in OCaml 4.06 and that patch would change the
  printed types in some corner cases. (realworldocaml/mdx#322, @emillon)

#### Removed

- Dropped compatibility with older OCaml versions. The minimal supported range
  is 4.08 to 4.13 now (realworldocaml/mdx#345, @Leonidas-from-XIV)
- Do not install deprecated `mdx` binary anymore (realworldocaml/mdx#274, @gpetiot)
- Remove deprecated `rule` command (realworldocaml/mdx#312, @gpetiot)
- Remove support for `require-package` label, use the `mdx` stanza in dune
  instead. This label was only used for the `rule` command and can now be
  safely removed. (realworldocaml/mdx#363, @Leonidas-from-XIV)
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.

None yet

2 participants