Skip to content
This repository was archived by the owner on Aug 25, 2022. It is now read-only.

Expand the signature Functoria.Key manually.#153

Merged
hannesm merged 1 commit intomirage:masterfrom
Drup:modulecrap
Jul 28, 2018
Merged

Expand the signature Functoria.Key manually.#153
hannesm merged 1 commit intomirage:masterfrom
Drup:modulecrap

Conversation

@Drup
Copy link
Copy Markdown
Member

@Drup Drup commented Jul 18, 2018

The semantics of module type of struct include X end was changed by @lpw25 in 4.07. It now produces module aliases instead of expanding to the inner types. Since we use this signature to extend the modules in Mirage, it doesn't work anymore. This version manually expand all the type equalities.

This means that if we were to add a new types in Functoria_key, we need to add the equality here. If you think it's madness, I don't disagree. Hopefully we will have a better solution in 4.08.

This change should be fully backward compatible and can be used in any OCaml version.

In conjunction with mirage/mirage#912, Fixes mirage/mirage#911

@Drup Drup changed the title Expand the signature manually. Expand the signature Functoria.Key manually. Jul 18, 2018
@hannesm hannesm merged commit ef5cfd0 into mirage:master Jul 28, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants